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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
HungFan
Regular Visitor

Regarding the DATEADD working with modifier ALL('Date')

Hi all,
I have a normal model with 'Date' and 'Sales' tables. And I have 3 measures,

  1. The first one is Sales Amount := SUMX('Sales', [Quantity] * [Net Price])
  2. The second one is Sales AllDate := CALCULATE( [Saltes Amount], ALL('Date'))
  3. The last one is Sales PM in AllDate := CALCULATE( [Saltes Amount], DATEADD('Date'[Date], -1 ,MONTH), ALL('Date'))

I put them in a matrix, but I don't understand the behavior of the last measure, why the ALL modifier doesn't remove the filter of DATEADD? It's like the measure of CALCULATE( [Saltes Amount], DATEADD('Date'[Date], -1 ,MONTH))
Could someone please explain it to me. Thanks!

Sales PM in AllDate.png

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

@HungFan 

Becuase it is not supposed to. It only removes the outer filter which is then replaced by the inner filter. However, it is mostly useless to have ALL along with DATEADD as it removes the filter automatically from the date table. 

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

@HungFan 

Becuase it is not supposed to. It only removes the outer filter which is then replaced by the inner filter. However, it is mostly useless to have ALL along with DATEADD as it removes the filter automatically from the date table. 

@tamerj1 

Thank you for reminding me the key point that ALL, used in CALCULATE, only remove the outer filter.

I understand it right now.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.