Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
is there a way to compute running total without the calculate function? For example via creating a table variable inside a measure and sum it up via sumx?
With this sample data:
Date | Sales | |
01.01.2021 | 123 | |
02.01.2021 | 423 | |
03.01.2021 | 535 | |
04.01.2021 | 66 | |
05.01.2021 | 22 | |
06.01.2021 | 11 | |
07.01.2021 | 11 | |
08.01.2021 | 33 | |
09.01.2021 | 44 |
Thank you very much in advance.
Best.
Solved! Go to Solution.
@Applicable88 Yes:
Measure =
VAR __Date = MAX('Table'[Date])
RETURN
SUMX(FILTER(ALL('Table',[Date] <= __Date),[Sales])
@Applicable88 Yes:
Measure =
VAR __Date = MAX('Table'[Date])
RETURN
SUMX(FILTER(ALL('Table',[Date] <= __Date),[Sales])
Just me, or is there a missing paren in this?
No doubt, it's your most favooooooooorite way to kick off CALCULATE. 🤣
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
87 | |
65 | |
50 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |