DAX cumulative total Column using Not using 'earlier'

dicken

Active Member
Joined
Feb 12, 2022
Messages
292
Office Version
  1. 365
Platform
  1. Windows
Hi,
Does anyone know how to do a cumulative total for a column not measure and not using "EARLIER', so
the same result as

Excel Formula:
 CALCULATE([Tunits], FILTER(ALL(Table13),Table13[Date] <=EARLIER(Table13[Date])))

I've tried using
Excel Formula:
CALCULATE( MAX( Table[Date] ))
, which bring back the date in the current row context but even when using this as a
helper column I still get a circular dependency.


RD
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Why would you not use EARLIER?
Because I'd like to know how, I found this on using 'Earlier' in a measure ;

Excel Formula:
EalrierM:=CALCULATE([Totalrevenue],
                      FILTER(ALL(FSales),
                                  SUMX(FILTER(FSales,EARLIER(FSales[Date])<= FSales[Date]),FSales[Sales]) ))


VBA Code:
https://javierguillen.wordpress.com/2012/02/06/can-earlier-be-used-in-dax-measures/

I'm still not sure how this is working, two things especially, even though the use of Filter(Table, Earlier(Table[date] and also
the fact that in this case the revenue measure uses multiple tables, so is figure being returned, the SUMX is using just the
Fsales table sales figures.
if you have any thought in either matter let me know.

Richard.
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,193
Members
452,616
Latest member
intern444

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