Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

SelectedValue in hierarchy slicer

Hi all,

 

I've attached a pbix file with more or less the same scenario I'm working on. I have a question related to how to perform different column calculate depending on the selection in the hierarchy slicer.

 

Here the link of pbix file:

https://t2cspain-my.sharepoint.com/:u:/g/personal/cromero_t2client_com/EbBfGJPqo9lFuBI_WQnTMSMBWQDZF...

 

I have two measures because i don't know how to do it only in one. 

 

1.png

 

If you select level 1 in this case "aaaa" as you can see the sum in the measure 2 is correct has be 3. Measure 3 is blak because you didn't select any level 2 so is it correct.

 

2.png

Here we have the first problem, i can't select two different Level 1. is normal because in the measure I'm doing If (selectedvalue but i don't know how to do include OR or a switch.

3.png

When you select only one level 2 is working fine, is sum a other columns as it is showed in the measure 3 but i don't understand why the measure 2 is showing the number 1.

4.png

And here we have other problem, i can't select more than one level 2 because it shown blank.

5.png

Same as before , i can't select different level 2.

6.PNG

I know all this measures are wrong but i don't know how to do it is just to start from something.

 

7.PNG8.PNG

 

I hope you can help me .

 

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User
1 REPLY 1
amitchandak
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.