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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dwalex
Regular Visitor

String together slicer hierarchy

I have a table of Regions (city names: New York, Atlanta, Seattle) and the states included in those regions. I need to present the user's multiple choices in that slicer as a single string of textI'd like to see:

 

New York Region: New York, New Jersey; Atlanta Region: Georgia, Florida;

 

Or perhaps as a single column table, one row per region:

New York Region: New York, New Jersey
Atlanta Region: Georgia, Florida
3 REPLIES 3
dwalex
Regular Visitor

Important to add that this is a very large Direct Query tabular model source, so whatever I build will have to be added to the model.

dwalex
Regular Visitor

Yes, I'm familiar with the heirarchy in a slicer, as shown here:

PBIX showing questionPBIX showing question

I'm trying to get the choices made in the slicer to appear as text in a measure or as rows in a table. I know how to CONCATENATEX the regions or the states, but not to iterate through the regions and string together the region's states into a single text value.

selimovd
Super User
Super User

Hey @dwalex ,

 

maybe check out the option to use a hierarchy in your slicer:

Add multiple fields to a hierarchy slicer - Power BI | Microsoft Docs

 

Would that be an option? Or do you want everything in a single field?

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍
 
Best regards
Denis
 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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