The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi all,
I'm trying to display cumulative values using "Line and stacked column chart" graph. The x axis represents the month number and the y axis represents values. for all valus, I've 2 status displayed below with red and blue colors:
Below you'll find the measure I've created:
Total Cumulable =
CALCULATE(
CALCULATE(SUM(Table[Price net])),
FILTER(
ALLSELECTED('Table'[Month Nr]),
ISONORAFTER('Table'[Month Nr], MIN('Table'[Month Nr]), DESC)
)
) + 0
The problem is for the month 7, 8 and 11 the red part is not displayed. Even if I don't have values for the status in the red color, I would like to display for months 7, 8 and 11 the values of the precedent month..
Any help to have the correct visuatlisation of cumulative values ? is there any mistake in the measure i'm using ?
Thanks in advance 🙂
Hi @K-LED ,
Try this measure to get the cummulative total:
Measure= CALCULATE(SUM(Table[Price_net]), FILTER(ALLSELECTED(Table[Month Nr]), Table[Month Nr] <=MAX (Table[Month Nr])))
Mark this as a solution, if I answered your question. Kudos are always appreciated.
Thanks.
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |