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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ttriber
New Member

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 @ttriber ,

 

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 @ttriber ,

 

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.

 

ttriber
New Member

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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