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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

How to subset a table using slicer?

Capture.JPGCapture2.JPG

 

I have the above dataset with two fields, QTR GTN % and QTR CV %

I need to create a slicer with these two columns with specific conditions for each.

 

For example, if I click on QTR GTN %, it will subset by table above to all rows with a QTR GTN % > 0.4 or QTR GTN % <-0.4. 

If I click on QTR CV %, it will subset by table above to all rows with a QTR CV % > 0.1 or QTR GTN % <-0.1.

Once I make the selection on my slicer I want my graph of unique sales_doc_numbers by profit center to also change based on the new subset table. How do I do this? 

2 REPLIES 2
wdx223_Daniel
Super User
Super User

@Anonymous  think you can create a dim table and use it in a slicer, then use Switch or IF to control you calculation

or create a calculation group

Anonymous
Not applicable

@wdx223_Daniel Do you think you could provide a sample code on how to do this. I have tried to create another unrelated table and add a measure with an if statement but it's not working for me

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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