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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
cruzp
Helper V
Helper V

Use measure as a Slicer

Hi Team,

 

I have 4 measures that wanted to use as a slicer. 

 

Project Removed = IF(NOT(ISBLANK([Category Previous])) && [Category Current] = "Null" && ([Category Previous] <> BLANK() || [Category Current] <> BLANK()), 
		"✔", BLANK())
New to R4 = 
VAR AmountPreviousWeek = 
    CALCULATE(
        SUM(REP_REVENUE_R1_R4_SNAPSHOT[AMOUNT]),
        FILTER(
            REP_REVENUE_R1_R4_SNAPSHOT,
            REP_REVENUE_R1_R4_SNAPSHOT[SNAPSHOT_DATE_BK] = MAX('Previous Reporting Date'[Previous Reporting Date])
        )
)
RETURN IF(ISBLANK(AmountPreviousWeek) && [Category Previous] = "Null", "✔", BLANK())
Start Change = IF([Start Previous] <> [Start Current] || ISBLANK([Start Previous]) && 
    ([Category Previous] <> BLANK() && [Category Current] <> BLANK()),
	"✔",BLANK())
End Change = IF([End Previous] <> [End Current] || ISBLANK([End Previous]) && 
	([Category Previous] <> BLANK() && [Category Current] <> BLANK()),
	"✔",BLANK())


how do I do it? Please help!

2 REPLIES 2
nvprasad
Solution Sage
Solution Sage

Hi cruzp,

 

The slcier accepts only columns as input. By default you can't add measure to the slicer. You can create a small table using "Enter data" then apply your filters using some dax functions like combination of switch and selected value.

 

Thank you

hi @nvprasad can you able to provide me detailed example since i am new to power bi as well

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.