March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi,
I'm having an issue when to visualize Total cumulative in Metrix table or chart. The total cumulative showing right value when I'm not using date hierarchy (Document Date) but when it's change to date hierarchy, the value showing incorrect.
Document Date | #Total Amount USD | # Total Cumulative $ | # Open Doc Count | # Total Cumulative |
10/24/2017 | -650 | -650 | 1 | 1 |
3/8/2018 | -670.74 | -1320.74 | 1 | 2 |
11/30/2018 | -1038 | -2358.74 | 1 | 3 |
12/13/2018 | -11394.19 | -13752.93 | 1 | 4 |
2/15/2019 | -1998 | -15750.93 | 1 | 5 |
5/13/2019 | -9828 | -25578.93 | 1 | 6 |
2/7/2020 | 325.12 | -25253.81 | 1 | 7 |
4/3/2020 | -564.41 | -25818.22 | 1 | 8 |
4/15/2020 | -1359.67 | -27177.89 | 1 | 9 |
Expected result to visualize as below:
Any help/suggestion would be appreciated.
TQVM
Solved! Go to Solution.
Hi,
Try this approach
Measure = calculate([#total amount],datesbetween(calendar[date],minx(all(calendar),calendar[date]),max(calendar[date])))
Hope this helps.
Hi,
Try this approach
Measure = calculate([#total amount],datesbetween(calendar[date],minx(all(calendar),calendar[date]),max(calendar[date])))
Hope this helps.
You are welcome.
Hi @eryka_90
Please try the following Measure:
# Total Cumulativeeeeee =
VAR _select_date = SELECTEDVALUE('Vendor Open Item'[Document Date])
RETURN
CALCULATE(
SUM('Vendor Open Item'[#Total Amount USD]),
FILTER(
ALL('Vendor Open Item'),
'Vendor Open Item'[Document Date] <= _select_date)
)
Result:
Best Regards,
Jayleny
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!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
122 | |
89 | |
78 | |
67 | |
52 |
User | Count |
---|---|
199 | |
140 | |
96 | |
77 | |
68 |