This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello
I'm trying to do a control chart by using the lines graphic.
For that I need to add on the graphic a constant line that will be the average of all my results from the column Result of my tab.
So I have done this measure :
But it doesn't work, as I don't have a constant line : it's doign the same graphic as if I had only put the column "Result" in the value of the graphic in fact .
Thank you for your help!
Solved! Go to Solution.
HI @matdel ,
In that case you can modify your average caluclation DAX as follows:
AVERAGE RESULT = CALCULATE(AVERAGE('Quality control results'[Result]), ALL('Quality control'))
You don't have to use AVERAGEX to achieve this. Because it evaluates an expression for each row. You need a single average value for your RESULT column therefore you need to use AVERAGE.
Thanks,
Pragati
HI @matdel ,
You can simply add a average line using the Analytics Pane feature on a Line chart visual. You don't need a calculation for it. See an example below:
Thanks,
Pragati
Yes, thanks, but actually after I need also to calculate UCL and LCL from the average, to put them on the graphic also
HI @matdel ,
In that case you can modify your average caluclation DAX as follows:
AVERAGE RESULT = CALCULATE(AVERAGE('Quality control results'[Result]), ALL('Quality control'))
You don't have to use AVERAGEX to achieve this. Because it evaluates an expression for each row. You need a single average value for your RESULT column therefore you need to use AVERAGE.
Thanks,
Pragati
Thank you!! it works 🙂
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 23 | |
| 23 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 28 | |
| 22 | |
| 21 |