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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.