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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Measure as Slicer - Workaround?

Hey guys,

 

do you have maybe an idea for a workaround, how a measure could be used as a Slicer?

 

I created a measure called "New MaxStatusas Number 3" that is changing based on the timeline Slicer (values 0,1,2).

 

I would like to create a Slicer, based on this measure, so that I can filter based on (0,1,2). However, I cannot put the measure as slicer.

 

I uploaded the data to OneDrive as well, here is the link: 

 

https://1drv.ms/u/s!Ah2VGOQRBzRVhi-vYXzSW8c8QdVA

 

Any help would be greatly appreciated!

 

Many thanks,

 

Adam

 

Slicer_1.JPGSlicer_2.JPG

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

Hi @Anonymous

Create the new table as below

2.png

create the measure

Measure = IF([new MaxStatusas Number 3]=SELECTEDVALUE(Table1[number]),1,0)

add measure in the visual level filter

1.png

Best Regards

Maggie

 

Community Support Team _ Maggie Li
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

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Anonymous

Create the new table as below

2.png

create the measure

Measure = IF([new MaxStatusas Number 3]=SELECTEDVALUE(Table1[number]),1,0)

add measure in the visual level filter

1.png

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-juanli-msft 

 

Do you always need to select a filter value for results to appear? I have a similar scenario and created this measure slicer as suggested by you. But when no slicer selection is made, my results are empty. Is it possible to have it such that when no selection is made, it defaults to everything being selected?

 

Thanks!

afk

v-juanli-msft
Community Support
Community Support

Hi @Anonymous

workaround 1:

add ""New MaxStatusas Number 3" in the Visual level filter, select 0/1/2 in the filter

4.png

 

workaround 2:

1.create a table (enter data), don't connect to any table

6.png

2 create a measure 

Measure = IF([new MaxStatusas Number 3]=SELECTEDVALUE(Table1[slicer]),1,0)

3.add measure in the visual level filter, select "1"

add Table1[slicer] in the slicer

5.png

 

 

This only support single selection.

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hey @v-juanli-msft,

 

many thanks for your fast reply! 

 

I really like your second workaround proposal! Would it be possible to show "green", "red", "yellow" instead of the 0,1,2 in the slicer?

 

I tried to create a new table and rewrite the measure, unfortunately without success...

 

I would really appreciate your help!

 

Many thanks,

 

Adam

 

Slicer_1.JPGSlicer_2.JPGSlicer_3.JPG

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.