Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

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:

DateTotalMonthlyAmountSubcategoryRuntimeMonths
Jan 22404Dep 110
Jan 22363Dep 312
Feb 22555Dep 211
Feb 22404Dep 110
Feb 22363Dep 312
Mar 22555Dep 211
Mar 22404Dep 110
Mar 22363Dep 312
Apr 22404Dep 110

(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!

24 Replies

    • Anonymous's avatar
      Anonymous
      Not 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's avatar
        lbendlin
        Icon for Super User rankSuper User

        Please provide sample data that fully covers your issue.
        Please show the expected outcome based on the sample data you provided.