Parameter based dynamic fields & Custom parameter value
Hi Domo,
Is there any way to change field dynamically based upon parameter value?
For example: I want to build single Pie chart for different fields like Country, State, City & Region.
- How can i create parameter with just text values Country, State, City & Region.
and
- How can I change my fields in pie chart based on above parameter value.
If user selects Country from parameter then the chart should automatically show categorization based on country & vice-versa
Thanks in advance
Reference : https://www.edureka.co/community/42920/changing-filter-values-based-parameter-selection-tableau
Comments
-
The only way that I can think to accomplish this would be through some sneaky data engineering. You would need to be careful about how the dataset was going to be used because anyone not familiar with the structure would likely double or triple count you value.
That being said, what I think you want to do is to "stack" your data. You should be able to use something like this:
SELECT
'Country' as `Parameter`
,`Country` as `Parameter Value`
,`VALUE FIELD FOR PIE CHART`
FROM `your_table`
UNION
SELECT
'State' as `Parameter`
,`State` as `Parameter Value`
,`VALUE FIELD FOR PIE CHART`
FROM `your_table`
UNION
SELECT
'City' as `Parameter`
,`City` as `Parameter Value`
,`VALUE FIELD FOR PIE CHART`
FROM `your_table`
UNION
SELECT
'Region' as `Parameter`
,`Region` as `Parameter Value`
,`VALUE FIELD FOR PIE CHART`
FROM `your_table`This will essentially give you four copies of your data set all stacked on top of eachother. You would create a filter card with the `Parameter` field. Then your Pie chart would use `Parameter Value` for the Pie name and whatever your value field is for the pie value.
I would recommend adding a summary number like this to the pie chart so the user would know that they need to select a single parameter first
CASE
WHEN COUNT(DISTINCT `Parameter`) >1 then 'Please Select a Single Parameter from the Filters'
else concat(`Parameter`,' view')
END0 -
@Gulam , check out this on Ideas/Exchange
Jacob Folsom
**Say “Thanks” by clicking the “heart” in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0
Categories
- All Categories
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 303 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3K Transform
- 104 SQL DataFlows
- 640 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 769 Beast Mode
- 72 App Studio
- 43 Variables
- 718 Automate
- 185 Apps
- 462 APIs & Domo Developer
- 57 Workflows
- 14 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 402 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 9 Software Integrations
- 135 Manage
- 132 Governance & Security
- 8 Domo Community Gallery
- 44 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive