Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213916

Running Totals in DAX

$
0
0

Hi All -

I've tried all suggestions on running totals using DAX.  I haven't had any luck though.

Can you sum a measure?  

Call Counts = COUNTROWS(CallTable)

I also tried creating a custom Calculated Column to see if that would work but both columns are still the same.  It's not accumulating.  

 

Running Total Test = 

CALCULATE (
SUM ( CallTable[Call Count Col] ),
FILTER (
ALL ( dimDate[Date] ),
dimDate[Date] <= MAX ( dimDate[Date] )
)
)

 

Also, tried - 

Running Total Test2 = IF(MIN(DimDate[Datekey])<=CALCULATE(MAX(CallTable[DateKey]),ALL(CallTable)),CALCULATE([Call Count],FILTER(All(DimDate[Datekey]),DimDate[Datekey]<=MAX((DimDate[Datekey])))),BLANK())

 

Ultimately, need to running total a Call count column which is a measure.  I can't seem to SUM a measure.  Any help is greatly appreciated!  Thank you.  Using a Matrix for testing purposes; the Row ='s Customer Name; Column = Month (1-12); Values = Call Count and Running total.  If I can get the running totals properly I will just use that column.


Viewing all articles
Browse latest Browse all 213916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>