cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
liamcol
Helper I
Helper I

Running total for sales

I can't seem to get the quick measure to work when trying to create a running total for the column. Amount.amount.

 

Does anybody know what the dax would be for this? 


Thanks

liamcol_0-1622607290120.png

 

4 REPLIES 4
liamcol
Helper I
Helper I

Hi, thanks but none of these are working as it should, it is summing up a total per fiscal quarter but I am looking for an accumulating total over the whole year (see image) 

 

liamcol_0-1623134107925.png

 

ERD
Solution Sage
Solution Sage

Hi @liamcol ,

You can use this measure:

Running total =
VAR currentDate =
    MAX ( T[Date] )
RETURN
    CALCULATE (
        SUM ( T[Value] ),
        FILTER ( ALL ( T[Date] ), T[Date] <= currentDate )
    )

If this post helps, then please consider Accept it as the solution ✔️to help the other members find it more quickly.

Tanushree_Kapse
Continued Contributor
Continued Contributor

Hi @liamcol ,
The DAX for running total:
Running total= CALCULATE(SUM(AMOUNT.amount),FILTER(ALL(Close Date), Close Date)<=MAX(Close Date)))

 

I hope this helps! Please mark it as a solution if it works🙂

It says A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.