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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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?
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 82 | |
| 72 | |
| 46 | |
| 35 |