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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Sharma0815
Helper II
Helper II

How to stop applying external Date[MMM-YYY] filter on measure

Hi ALL,


I have a table contains my survey data and I mapped it with a Date table and I don't want to apply any value from my Date[MMM-YYYY] on my measure  created using survey table data.


Score =

CALCULATE (
DISTINCTCOUNT( Survey[responseid] ),ALL('Date','Date'[MMM-YYYY]),
FILTER ( Survey, Survey[category] = "Top2" && Survey[recordeddate] >= DATE(2020,11,1) )
)
1 REPLY 1
Anonymous
Not applicable

If you want to completely ignore any filters on 'Date', then you write:

Score =
CALCULATE (
    DISTINCTCOUNT( Survey[responseid] ),
    KEEPFILTERS(
        Survey[category] = "Top2"
    ),
    KEEPFILTERS(
        Survey[recordeddate] >= DATE(2020,11,1) 
    ),
    ALL( 'Date' )   
)

Also, filtering by a full fact table, Survey, as you do in your code is not only bad practice from many points of view, but more importantly it slows down your code to a great extent and sometimes can indeed be dangerous. One should always only filter by columns that are really needed. There's too much theory behind the above rules to explain here. If you want to know more, you can look for articles on www.sqlbi.com or read the book "The Definitive Guide to DAX".

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.