cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DelphineCarnet New Member
New Member

Multilevel Slicers for unrelated attributes, to return the value of the last selected attribute HELP

Untitled.png

 

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Multilevel Slicers for unrelated attributes, to return the value of the last selected attribute

hi, @DelphineCarnet

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.

1.JPG

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

2.JPG

Step3:

You could download a  Hierarchy slicer from Marketplace

3.JPG

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

4.JPG

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

5.JPG

Result:

6.JPGSelect A7.JPGSelect A and C

here is pbix, please try it.

https://www.dropbox.com/s/qhf5vyifbau3rfj/Multilevel%20Slicers%20for%20unrelated%20attributes%2C%20t...

 

Best Regards,
Lin

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
1 REPLY 1
Community Support Team
Community Support Team

Re: Multilevel Slicers for unrelated attributes, to return the value of the last selected attribute

hi, @DelphineCarnet

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.

1.JPG

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

2.JPG

Step3:

You could download a  Hierarchy slicer from Marketplace

3.JPG

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

4.JPG

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

5.JPG

Result:

6.JPGSelect A7.JPGSelect A and C

here is pbix, please try it.

https://www.dropbox.com/s/qhf5vyifbau3rfj/Multilevel%20Slicers%20for%20unrelated%20attributes%2C%20t...

 

Best Regards,
Lin

 

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.