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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
lemaribdb
Helper II
Helper II

NAMEOF slicer select with multiple dimensions

Hi guys!

Let's say I have such measure:

 

Parameter = {
    ("Customer Name 1", NAMEOF('Customer 1'[Cust Name]), 0),
    ("Customer Name 2)", NAMEOF('Customer 2'[Cust Name]), 1)
}

 

I use this in slicer and in matrix as a row. Depending on selection in matrix it will show me one, the other or both at once in a hierarchy (one under another).
That's great, but is there a way to tweak it so I have a slicer with True/False option that depending on choice, when "True" selected, it will show the Customer 1'[Cust Name]). So nothing fancy, just as above one.
BUT if False selected, it will show both in a hierarchy, 'Customer1'[Cust Name] and when drilled down, 'Customer 2'[Cust Name]? So as if both were selected in the original slicer.
I guess the same result would be if it either shown/hid 'Customer2'[Cust Name] but no clue which is easier.
Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lemaribdb 

 

Unfortunately, Power BI DAX does not directly support dynamic hierarchies in the way you're describing purely through a measure because the hierarchy needs to be defined at the model or visual level, not dynamically through a measure.

 

 

Best Regards,

Jayleny

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @lemaribdb 

 

Unfortunately, Power BI DAX does not directly support dynamic hierarchies in the way you're describing purely through a measure because the hierarchy needs to be defined at the model or visual level, not dynamically through a measure.

 

 

Best Regards,

Jayleny

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.