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.
Dear Community,
A bit of a clusterf*ck on this one... I have a bunch of indicators that I'd like to organize in filters:
Basically, if you click on A you have the choice to further click on C and D. Those 3 indicators are unrelated and the value should not be aggregated. It is merely a way to organize the attributes
I'd like the value displayed to be the one of the last attribute chosen:
* I select A only= 1 (value of A)
* I select A then C = 3 (value of C)
Quite the puzzle hey! Anyone has any ideas? I can get the filters to work, the value to work, but not together!
Any idea is more than welcome!
Many thanks for reading
Delphine.
Solved! Go to Solution.
hi, @Anonymous
After my research, You may try to this way as below:
Step1:
In Edit Queries, Duplicate the indicator table (optional), then select the all the level then unpivot the columns.
Note: It is better the level columns have the size of the hierarchy, otherwise, you need a level column hierarchy reference table.
Then create a relationship between it with the indicator table to determine the minimum level.
Step2:
Create the relationship between unpivot table with data table
Step3:
You could download a Hierarchy slicer from Marketplace
Step4:
Create a measure like below:
Measure = IF(ISFILTERED('Table1 (2)'[Value]), IF(CALCULATE(MAX('Table1 (2)'[Attribute]),ALL(Table2))=CALCULATE(MAX('Table1 (2)'[Attribute])),1,2),3)
Step5:
Create the visual
Darg the field Attribute and Value from Unpivot table into Hierarchy slicer
And drag the field Value from data table into table visual then drag the measure into visual level filter of table visual and set
filter is 1 or 3
Result:
here is pbix, please try it.
Best Regards,
Lin
hi, @Anonymous
After my research, You may try to this way as below:
Step1:
In Edit Queries, Duplicate the indicator table (optional), then select the all the level then unpivot the columns.
Note: It is better the level columns have the size of the hierarchy, otherwise, you need a level column hierarchy reference table.
Then create a relationship between it with the indicator table to determine the minimum level.
Step2:
Create the relationship between unpivot table with data table
Step3:
You could download a Hierarchy slicer from Marketplace
Step4:
Create a measure like below:
Measure = IF(ISFILTERED('Table1 (2)'[Value]), IF(CALCULATE(MAX('Table1 (2)'[Attribute]),ALL(Table2))=CALCULATE(MAX('Table1 (2)'[Attribute])),1,2),3)
Step5:
Create the visual
Darg the field Attribute and Value from Unpivot table into Hierarchy slicer
And drag the field Value from data table into table visual then drag the measure into visual level filter of table visual and set
filter is 1 or 3
Result:
here is pbix, please try it.
Best Regards,
Lin
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 |
---|---|
105 | |
93 | |
75 | |
62 | |
50 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |