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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Oros
Post Prodigy
Post Prodigy

Slicer based on calculated column

Hello,

 

I have a calculated column (Net Sold).  How do I create a slicer based on the Net Sold column to filter my product table?  Thanks.

Oros_0-1710701974681.png

 

I would like to add a slicer based on the range of the Net Sold values so that I can add the "Good", "Bad" slicer.

Oros_1-1710702022272.png

 

1 ACCEPTED SOLUTION
MNedix
Super User
Super User

Hi,

You add a new Column with a Switch function. In your case it should be something like:

G/B = SWITCH(
    TRUE(),
    Sheet1[Net Sold]>10,"Good",
    Sheet1[Net Sold]<10,"Bad")

Then, on the Report page, you add the G/B as a Slicer.



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

View solution in original post

2 REPLIES 2
MNedix
Super User
Super User

Hi,

You add a new Column with a Switch function. In your case it should be something like:

G/B = SWITCH(
    TRUE(),
    Sheet1[Net Sold]>10,"Good",
    Sheet1[Net Sold]<10,"Bad")

Then, on the Report page, you add the G/B as a Slicer.



If the post helped then please give it a Kudos and mark it as the solution so others can see it.
Cheers,

Thanks @MNedix 

 

It worked!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors