Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a filter containing City/Country :
I created a table Filters with a column Filtering containing City and Country like above.
When selecting City I want to display the target by city:
When selecting Country I want to display the target by country:
Knowing that I have other filters in the same page like semester ...
Solved! Go to Solution.
Hi @amirabedhiafi ,
Here are the steps you can follow:
1. Use Enter data to create a table.
2. Create measure.
City =
IF(
CONTAINS(
'Table',
'Table'[Slicer Selection],"City"),
SUMX(FILTER('Filters','Filters'[City]=MAX('Filters'[City])),'Filters'[Target]),BLANK())
Country =
IF(
CONTAINS(
'Table',
'Table'[Slicer Selection],"Country"), SUMX(FILTER('Filters','Filters'[City]=MAX('Filters'[City])&&'Filters'[Country]=MAX('Filters'[Country])),'Filters'[Target]),BLANK())
3. Use Table's [Slicer Selection] as the slicer
4. Result:
When choosing City as:
When choosing Country as:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @amirabedhiafi ,
Here are the steps you can follow:
1. Use Enter data to create a table.
2. Create measure.
City =
IF(
CONTAINS(
'Table',
'Table'[Slicer Selection],"City"),
SUMX(FILTER('Filters','Filters'[City]=MAX('Filters'[City])),'Filters'[Target]),BLANK())
Country =
IF(
CONTAINS(
'Table',
'Table'[Slicer Selection],"Country"), SUMX(FILTER('Filters','Filters'[City]=MAX('Filters'[City])&&'Filters'[Country]=MAX('Filters'[Country])),'Filters'[Target]),BLANK())
3. Use Table's [Slicer Selection] as the slicer
4. Result:
When choosing City as:
When choosing Country as:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Do you know how to use bookmarks? I would recommend it.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Yes just tried to use a trick with the filters instead of the bookmarks.
Well try with Bookmarks now,
Put 2 visuals on top of each others, select the filter, and depending on filter selection hide or keep the visual you need to see using bookmarks.
here is a video that could help you
https://www.youtube.com/watch?v=_Afcj8mT5_Q
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
User | Count |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |