cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
mandar
Frequent Visitor

Exclude values from slicer

Hi,

 

I have a very tricky scenario where I want to exclude values based on  + and -

 

For eg; in the below example I want to see all values which are less than -2 and greater than +2. In the below example I added two slicers but obviously it wont work like that.. any ideas?

 

mandar_0-1673534124222.png

 

1 ACCEPTED SOLUTION
v-rongtiep-msft
Community Support
Community Support

Hi @mandar ,

I have created a simple sample, please refer to my pbix file to see if it helps you.

Create 2 tables with the + and - values , and then put them into different slicers.

Then create a measure.

Measure = var _1=MINX(ALLSELECTED('Table (2)'),'Table (2)'[value])
var _2=MAXX(ALLSELECTED('Table (3)'),'Table (3)'[value])
return
IF(MAX('Table'[value])>=_1&&MAX('Table'[value])<=_2,1,BLANK())

vpollymsft_0-1673573101061.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

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

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @mandar ,

I have created a simple sample, please refer to my pbix file to see if it helps you.

Create 2 tables with the + and - values , and then put them into different slicers.

Then create a measure.

Measure = var _1=MINX(ALLSELECTED('Table (2)'),'Table (2)'[value])
var _2=MAXX(ALLSELECTED('Table (3)'),'Table (3)'[value])
return
IF(MAX('Table'[value])>=_1&&MAX('Table'[value])<=_2,1,BLANK())

vpollymsft_0-1673573101061.png

How to Get Your Question Answered Quickly 

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors