DAX cumulative total efficiency

dicken

Active Member
Joined
Feb 12, 2022
Messages
292
Office Version
  1. 365
Platform
  1. Windows
This is just a question regarding efficiency, is there any difference between

Excel Formula:
RTC:=SUMX( FILTER(ALL('Calendar'[Date]), 'Calendar'[Date] <= MAX('Calendar'[Date]) ), [TotalUnits])
and
Excel Formula:
RTC2:=CALCULATE( [TotalUnits], FILTER(ALL('Calendar'[Date]),'Calendar'[Date] <= MAX( 'Calendar'[Date]) ) )

Richard ,
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
SUMX is an iterator which could be a bit less efficient. Is this working too?

Excel Formula:
RTC2:=CALCULATE( [TotalUnits], ALL('Calendar'[Date]),'Calendar'[Date] <= MAX( 'Calendar'[Date]) )
 
Upvote 0
SUMX is an iterator which could be a bit less efficient. Is this working too?

Excel Formula:
RTC2:=CALCULATE( [TotalUnits], ALL('Calendar'[Date]),'Calendar'[Date] <= MAX( 'Calendar'[Date]) )
 
Upvote 0
Yes, But as the measure [Total] = SUMX( Table , Table [Values] ) , doesn't
Excel Formula:
=CALCULATE( [TotalUnits], FILTER(ALL('Calendar'[Date]),'Calendar'[Date] <= MAX( 'Calendar'[Date]) ) )
also iterate, as far as I know there is not way of doing a cumulative total in DAX with out, in power query you can
use List Generate or list accumulate.

Richard.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top