Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear all,
as you can see below I am trying to find the average of the last 6 months data.
The data is loaded in as individual users and the date the access a website. I am countinf the number that acess the site per month.
Distinct Users = DISTINCTCOUNT(UserID)
Then I am plotting this against a date from a Calendar table.
Now I want an average line.
I am using
Can anyone help please?
Average Per Country =
VAR _A =
SUMMARIZE (
'Table',
'Table'[Country],
'Table'[Product],
"DisC", DISTINCTCOUNT ( 'Table'[Color] )
)
RETURN
AVERAGEX ( _A, [DisC] )
// Modify it with your scenario
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
@mh2587 Forgive me but is this not exactly the same as I ahve put above but without the ALLSELECTED?
Hi, @SteveIOW
You can try to add dynamic reference lines to visuals with the Analytics pane in Power BI Desktop.
Please select visual->go to Visualization Area -> Analytics -> Average Line
Use the Analytics pane in Power BI Desktop
Best Regards,
Community Support Team _ Eason
Thank you - my issue is that I am trying to create an SPC that rferences only the last 6 months for mean and sigma lines. the rference line visuals will only provide mean and sigma lines for the whole displayed data. I need it to display the lines across the whole data but using only the last 6 months in the calculation.
any ideas?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 124 | |
| 107 | |
| 80 | |
| 69 | |
| 67 |