Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I my Data i have a list of countries from which i need to filter out a specific country such as @"Spain" from destination country. What options do i have? I want to show it on a graph in comparison with all countries.
Solved! Go to Solution.
Hi,
You can create all your graphs as if you will use all the data. Then, go to your variable "Country", click it and switch the visualization to a "Slicer". Afterwards, go to "Format" on the top of the page and then "Edit Interactions". You can choose which graphs to filter on the dashboard. That way you can have all your data from every other country and a set of visualizations dedicated to the country selected.
Here you have an example, how to do it for your database.
Assumption: Countries are listed in one column (like that)
Link to this public report: https://coronadatasource.org/open-reports/general/cds-corona-covid-19-all-in-one-report/
if link not working, go to https://coronadatasource.org/ and click to open reports
Many thanks for your kind help.
You're welcome
Another option is to use Calculate('Table'[Measure], 'Table'[Country_variable] == "Spain")
Hi,
You can create all your graphs as if you will use all the data. Then, go to your variable "Country", click it and switch the visualization to a "Slicer". Afterwards, go to "Format" on the top of the page and then "Edit Interactions". You can choose which graphs to filter on the dashboard. That way you can have all your data from every other country and a set of visualizations dedicated to the country selected.
Hi @yashdsin
Create a new table which has no relationship with other tables.
country list = VALUES(Table1[destination])
Add [destination] in a slicer.
Create measures in Table1
Measure = CALCULATE(MAX('country list'[destination]),USERELATIONSHIP(Table1[destination],'country list'[destination])) Measure 2 = IF(MAX(Table1[destination])=[Measure],1,0)
Add [Measure 2] in the visual level filter, so the table would only show rows for the specific country.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Maggie,
Many thanks for your kind support. I am trying to incoporate your calculation on my data but receiving an error. Attached is the error could you please help me in where i am going wrong.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
78 | |
75 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |