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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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