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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Filtering a SWITCH Measure within EVALUATE

Hi All, 

 

I have switch measure which I would like to run a trace on within DAX Studio. It is a typical switch measure which uses a filter from an unrelated lookup table - MeasuresTable. 

 

How do I apply a filter to an evaluate statement when the measures table is a unrelated table? Currently it is returning a table of multiple values rather than a single value (as you would expect).

 

Currently the EVALUATE statement looks something like this:

 

EVALUATE
    SUMMARIZE(
    'FactTable',
    'dimDate'[Month],
    "Value", [SwitchMeasure1],
)

 

 

FILTER(MeasureTable, 'MeasureTable'[MeasureName] = "The Measure I Want") <--- Where do I put this!
    

1 REPLY 1
Anonymous
Not applicable

@Anonymous,

Could you please share sample data of your tables and post expected result here?

You can add CALCULATE() function to return filtered data inside the SUMMARIZED function following the instructions in the blog below. 

http://www.sqlbi.com/articles/best-practices-using-summarize-and-addcolumns/

However, if you want to return single value instead of table, you may need to create measure or calculated column instead of summarized table.

Regards,

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.