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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cruzp
Helper V
Helper V

Use DAX Measure as a Slicer

Hello Team,

 

I believe that slicier accepts only columns as input. By default I can't add measure to the slicer.

How do i create a workaround to have the below DAX as a filter/slicer?

I heard that it has something to do with creating a small table, "enter data" and applying filters using some dax functions like combination of switch and selected value.

 

But i don't know how to implement it. Please help.

 

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())

 

Thanks!

 

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

Share some data (in a format that can be pasted in an MS Excel file), explain the question and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur 

here is the link for the updated question with sample data and expected output


https://community.fabric.microsoft.com/t5/Desktop/Use-DAX-Measure-as-a-slicer-for-the-table-in-the-r...

i will post a new one, and i will tag you there thanks @Ashish_Mathur 

cruzp
Helper V
Helper V

any type of help is appreciated! Thanks!

cruzp
Helper V
Helper V

@Anonymous hi, can you help me on this?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.