The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
99 | |
93 | |
81 | |
63 | |
56 |
User | Count |
---|---|
248 | |
123 | |
111 | |
78 | |
74 |