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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

How to get a Slicer to show each Category it keeps showing the numbers not the Category

Hi Guys,

 

I keep running into the situation in which I have a slicer but it doesnt show the categories only the exact numbers not sure what to do. I have added Net Revenue, Gross Revenue & Cost on the slicer but doesnt come up with the correct categories just numbers.

 

Below is a photo If someone could assist me.

 

Screenshot 2022-11-26 125410.png

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

Hi @Anonymous ,

 

If you need to appear categories, you need to unpivot these two in PQ to get a column of numbers and a column of attributes. Attribute column to distinguish Net Revenue from Gross Revenue.

Let's say it's your current situation.

vstephenmsft_1-1669601656109.png

Go to the Power Query Editor, select the two fields, and click "Unpivot Columns".

15.png

vstephenmsft_2-1669601869443.png

Then click "Close&Apply" and go back to Power BI Desktop, put two new fields into slicer, you'll get this.

vstephenmsft_3-1669601938293.png

Unpivot columns - Power Query | Microsoft Learn

 

 

Best Regards,

Stephen Tao

 

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

3 REPLIES 3
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you need to appear categories, you need to unpivot these two in PQ to get a column of numbers and a column of attributes. Attribute column to distinguish Net Revenue from Gross Revenue.

Let's say it's your current situation.

vstephenmsft_1-1669601656109.png

Go to the Power Query Editor, select the two fields, and click "Unpivot Columns".

15.png

vstephenmsft_2-1669601869443.png

Then click "Close&Apply" and go back to Power BI Desktop, put two new fields into slicer, you'll get this.

vstephenmsft_3-1669601938293.png

Unpivot columns - Power Query | Microsoft Learn

 

 

Best Regards,

Stephen Tao

 

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

 

Anonymous
Not applicable

Hi,

 

I am not familiar with what your saying could you give me better instructions. I have tried changing it to a visual filter on the main visual but nothing has changed.

sudhav
Helper V
Helper V

Take  "revenue type" column(if you have) in any other related table, sothat ypou will get, otherwise apply visual level filter on the main visual.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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