Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi,
I have looked around the forum for advice on cumulative graphs, and tried to do one myself. I would really appreciate some pointers with getting it right!
This graph is supposed to show cumulative number of programs exited every month - The legend to show how much of these are failures or completions:
The resulting graph is wrong because it actually shows a double-up of the number of cumulative program exits, so the legend isn't 'color-coding' the values the way it should - in fact is it reading it as if all cumulative program exits are failures, AND ALSO completions.
Can someone please help me see at what stage I went wrong? And how can I fix this?
Sample of main columns I'm working with (excludes confidential items):
Thank you all very very much in advance!
Solved! Go to Solution.
Hi KeepCalm
I would approach this in a different way.
Instead of a calculated column build a measure to count the number of programs - if each row is 1 program then:
Programs = COUNTROWS('Test Volumes')
otherwise
Programs = DISTINCTCOUNT('Test Volumes'[ProgramID]) - something like that.
now we need a cumulative total pattern that ignores the Contract Fullfilment column in the ALL statement (since we want to use that in our graph as a legend)
Cumulative Total =
CALCULATE (
[Programs],
FILTER ( ALLEXCEPT ( 'Test Volumes', 'Test Volumes'[Contract Fulfillment] ), 'Test Volumes'[Closed] <= MAX ( 'Test Volumes'[Closed] ) )
)
that should give you the result you need.
Hi KeepCalm
I would approach this in a different way.
Instead of a calculated column build a measure to count the number of programs - if each row is 1 program then:
Programs = COUNTROWS('Test Volumes')
otherwise
Programs = DISTINCTCOUNT('Test Volumes'[ProgramID]) - something like that.
now we need a cumulative total pattern that ignores the Contract Fullfilment column in the ALL statement (since we want to use that in our graph as a legend)
Cumulative Total =
CALCULATE (
[Programs],
FILTER ( ALLEXCEPT ( 'Test Volumes', 'Test Volumes'[Contract Fulfillment] ), 'Test Volumes'[Closed] <= MAX ( 'Test Volumes'[Closed] ) )
)
that should give you the result you need.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 40 | |
| 35 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 71 | |
| 70 | |
| 38 | |
| 35 | |
| 23 |