Forum Discussion
Creating a cumulative bar chart with additional categories
So i have basically done what is asked for in this post but as a bar chart:
https://community.fabric.microsoft.com/t5/Desktop/Problems-with-formula-for-creating-cumulative-counts-for-a-Task/m-p/3374379#M1123304
This works for me
Now in my table are multiple subcategories for each entry which i also want to include in the visual.
For example if my table looked like this:
| Date | Total | MonthlyAmount | Subcategory | RuntimeMonths |
| Jan 22 | 40 | 4 | Dep 1 | 10 |
| Jan 22 | 36 | 3 | Dep 3 | 12 |
| Feb 22 | 55 | 5 | Dep 2 | 11 |
| Feb 22 | 40 | 4 | Dep 1 | 10 |
| Feb 22 | 36 | 3 | Dep 3 | 12 |
| Mar 22 | 55 | 5 | Dep 2 | 11 |
| Mar 22 | 40 | 4 | Dep 1 | 10 |
| Mar 22 | 36 | 3 | Dep 3 | 12 |
| Apr 22 | 40 | 4 | Dep 1 | 10 |
(The total is also the key attribute)
The visual i currently have would be this:
But i want to see which department is responsible for which part of the monthly amount. So i try to add the subcategory as legend and this happens:
Since some departments dont have any impact in april the acumulated values also dont get added to the sum in april.
How can i always keep the complete cumulative value in each month and also show the subcategories?
If anyone could help it would be greatly appreciated!
Hi,
PBI file attached.
24 Replies
- lbendlin
Super User
To report on things that are not there you need to use crossjoins and/or disconnected tables.
- Ashish_Mathur
Super User
- Ashish_Mathur
Super User
- AnonymousNot applicable
Yes this works but what if i have data that is in the future?
Currently the cumulative values are based on the DATESYTD function but what do i do as soon as i have data that is planned to be after the current year?- lbendlin
Super User
Please provide sample data that fully covers your issue.
Please show the expected outcome based on the sample data you provided.