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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Earkkaperk
Frequent Visitor

Measure in slicer

Hi guys,

 

I have an issue when I try to create calculated column as column cannot be pushed to remote data source.

So I decide to do with measure instead.

AlarmDesc = LOOKUPVALUE(AlarmCode[AlarmDesc],AlarmCode[DateText],MAX('Fact Lineloss View'[DateText]))
This to have AlarmDesc which is from AlarmDesc table lookup by date
 
Then I created another measure here
CausalMachine_new = IF([AlarmDesc]="4_05 Event Machine Top Closer Stop (Interlock)","99.Case Sealer",MAX('Fact Lineloss View'[CausalMachine]))
It works well with my table but I want this to be a slicer also.
As the measure cannot be put in slicer. So I'm stuck here.
 
Is there any workarounds to make this works?
I have tried many ways from here but it's not working as expected.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Earkkaperk ,

It is true that putting Measure into Slicer is not supported in Power BI.

But I think you have the option of using Calculated columns, which support putting themselves into Slicer and which have similar functionality to Measure.

I create two tables as you mentioned.

vyilongmsft_0-1726713394033.png

vyilongmsft_1-1726713416317.png

Then I create two calcualted columns.

Alarm =
LOOKUPVALUE (
    'AlarmCode'[AlarmDesc],
    'AlarmCode'[DateText], MAX ( 'Fact Lineloss View'[DateText] )
)
CausalMachine_new =
IF (
    [AlarmDesc] = "4_05 Event Machine Top Closer Stop (Interlock)",
    "99.Case Sealer",
    MAX ( 'Fact Lineloss View'[CausalMachine] )
)

vyilongmsft_2-1726713714927.png

So you can add them into the slicer and it will give you what you want.

vyilongmsft_3-1726714087768.png

 

 

 

Best Regards

Yilong Zhou

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

2 REPLIES 2
Anonymous
Not applicable

Hi @Earkkaperk ,

It is true that putting Measure into Slicer is not supported in Power BI.

But I think you have the option of using Calculated columns, which support putting themselves into Slicer and which have similar functionality to Measure.

I create two tables as you mentioned.

vyilongmsft_0-1726713394033.png

vyilongmsft_1-1726713416317.png

Then I create two calcualted columns.

Alarm =
LOOKUPVALUE (
    'AlarmCode'[AlarmDesc],
    'AlarmCode'[DateText], MAX ( 'Fact Lineloss View'[DateText] )
)
CausalMachine_new =
IF (
    [AlarmDesc] = "4_05 Event Machine Top Closer Stop (Interlock)",
    "99.Case Sealer",
    MAX ( 'Fact Lineloss View'[CausalMachine] )
)

vyilongmsft_2-1726713714927.png

So you can add them into the slicer and it will give you what you want.

vyilongmsft_3-1726714087768.png

 

 

 

Best Regards

Yilong Zhou

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

amitchandak
Super User
Super User

@Earkkaperk , For the measure slicer you have to use Segmentation

 

Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

Customer Retention with Dynamic Segmentation, New/Lost/Retain Customer Count: https://youtu.be/EyL7KMw877Q

Power BI ABC Analysis using Window function, Dynamic Segmentation: https://youtu.be/A8mQND2xSR4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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