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.
Hi all,
Stuck on this issue - any help would be much appreciated
DateDim
Sales
I am trying to create a measure that is a cumulative total of the sales and is able to be filtered by the date table. I have the following measure which produces the cumalative sales
Cumalatve Sales =
CALCULATE (
SUM ( Sales[Sales] ),
FILTER (
ALL ( DateDim[Date] ),
DateDim[Date] <= MAX ( DateDim[Date] )
)
)
However it not adjusting correctly for the date. As you can see from the graph, the first value is 1,246 which is a cumulative total of the previous three days. Instead it should start at 151 as the date filter is set to 5th March
Any help would be much appreciated.
Sample File -
Solved! Go to Solution.
Hi @Kurt4597 ,
You can modify Measure to the following form:
Measure =
CALCULATE(
SUM('Sales'[Sales]),
FILTER(ALLSELECTED(DateDim),
'DateDim'[Date]<=MAX('DateDim'[Date]))
)
Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @Kurt4597 ,
You can modify Measure to the following form:
Measure =
CALCULATE(
SUM('Sales'[Sales]),
FILTER(ALLSELECTED(DateDim),
'DateDim'[Date]<=MAX('DateDim'[Date]))
)
Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
115 | |
74 | |
57 | |
47 | |
38 |
User | Count |
---|---|
167 | |
118 | |
61 | |
58 | |
50 |