Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I would like to build a simple graph like the following (from Excel - X-axis shows running total quantity, and the Y-axis shows per ton margin.
😞
Now, I managed to put this in PBI using the index column, and the best result I got is this:
As you may see, this scatter plot is not presentation-friendly. As the values I use are measures, I am not being able to get the same result from line graphs. I also could not manage to build a calculated column for running total quantity. The measure formula is as follows:
Q-ty(tn) running total in Index =
CALCULATE(
SUM('Result'[Aggr.Qty]);
FILTER(
ALLSELECTED('Result'[Index]);
ISONORAFTER('Result'[Index]; MAX('Result'[Index]); DESC)
)
)
Please, advise me on getting the desired output, which is a simple line with running total qty on X and per ton margin on Y.
@foyiq,
Create a calculate column that represents running total using DAX below, then create line chart and check if you get expected result.
Running Total COLUMN =
CALCULATE (
SUM ( 'Result'[Aggr.Qty]);
ALL ( 'Result' );
'Result'[Index]<= EARLIER ('Result'[Index])
)
Regards,
Lydia
| User | Count |
|---|---|
| 52 | |
| 41 | |
| 32 | |
| 15 | |
| 13 |
| User | Count |
|---|---|
| 84 | |
| 72 | |
| 37 | |
| 27 | |
| 24 |