Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
I need to add average line to stacked area chart in Power BI. Currently only constant line option is available in the analytics pane. Is there any custom visual for the same?
Can you please help me with this.
Thanks,
Vamika
Hi @Anonymous ,
I believe other custom visuals also will need a field for line value. Create a measure for average and use Line and Stacked column chart will be a good choice.
Best Regards,
Jay
@Anonymous
you can add a measure like
CALCULATE(AVERAGE(Table[Value]), ALLSELECTED(Table))
and put it as line to Line and Stacked Column chart visual
@az38 - I am aware of the solution that you shared but I want stacked area chart only.
@Anonymous
line and stacked is the same as stacked + constant line
@Anonymous , You can create a line stacked visual and use a measure like this and use it on the line
Avg = calculate(Average(Table[Col],all(Table))
Avg = calculate(Average(Table[Col],allselected(Table))
I dont want line stacked visual. I want stacked area chart only along with the average line.
User | Count |
---|---|
98 | |
91 | |
84 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |