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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
cruzp
Helper III
Helper III

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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