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
kaf_617
Regular Visitor

slicer for race/ethnicity bars in a cluster column chart

I have followed the instructions here: https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

However, the slicer I created with the variables for race/ethnicity does not work. For example, as you can see in the screenshot, I have selected Black, but all races/ethnicities still show in my clustered column chart. How can I make this field parameter option work? Or is there another simpler way to be able to show only some of the race/ethnicities in the chart? I have been able to add slicers for choosing the locations (x-axis), but not to choose which race/ethnicities show/hide in the chart. Please help.

 

kaf_617_0-1715550125939.png

 

1 ACCEPTED SOLUTION
v-xuxinyi-msft
Community Support
Community Support

Hi @kaf_617 

 

Thanks for the reply from @vicky_ , please allow me to provide another insight:

 

I'm using sample data in Power BI.

vxuxinyimsft_2-1715852334469.png

Unpivot Columns in Power Query by selecting the columns you need to slicer.

vxuxinyimsft_0-1715852077849.png

vxuxinyimsft_4-1715852923586.png

 

Close & Apply

 

You can then use the field as a slicer.

vxuxinyimsft_3-1715852864971.png

 

Output:

vxuxinyimsft_5-1715853044421.png

 

Best Regards,
Yulia Xu

 

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

View solution in original post

2 REPLIES 2
v-xuxinyi-msft
Community Support
Community Support

Hi @kaf_617 

 

Thanks for the reply from @vicky_ , please allow me to provide another insight:

 

I'm using sample data in Power BI.

vxuxinyimsft_2-1715852334469.png

Unpivot Columns in Power Query by selecting the columns you need to slicer.

vxuxinyimsft_0-1715852077849.png

vxuxinyimsft_4-1715852923586.png

 

Close & Apply

 

You can then use the field as a slicer.

vxuxinyimsft_3-1715852864971.png

 

Output:

vxuxinyimsft_5-1715853044421.png

 

Best Regards,
Yulia Xu

 

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

vicky_
Super User
Super User

You need to create a measure for each of the ethnicities - in the docs, this is one of the limitations at the end:

  • You can't use implicit measures, so if you need an aggregated column as one of your fields, you need to create an explicit DAX measure for it. For more information, see implicit vs. explicit measures.

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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