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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Fabric Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.