Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

AVERAGE and STD of a measure series

Hi, I have this line chart where I put this average line:

Vander77_1-1670267089454.png

The data is the difference between another two times series that are calculated with measures affected by filters. The problem is that I also need another two constant lines representing the average plus and less one standard deviation. I tried to do it by calculating the average of this measure to add or subtract the standard deviation in a second moment but the result i got is strange:

Vander77_2-1670268506220.png

I tried this formula "

AVERAGEX(
    KEEPFILTERS(VALUES('Table'[Date])),
    CALCULATE([Measure])
)"

But it doesn't work, it just follows the series.

Any ideas of how solving it?

 

4 REPLIES 4
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

If you need more help, please let me know.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

tamerj1
Super User
Super User

Hi @Anonymous 

Please try

AVERAGEX(
    KEEPFILTERS(ALLSELECTED('Table'[Date])),
    [Measure]
)
Anonymous
Not applicable

It didn't work, the average gone to zero with this formula.

@Anonymous 
Please try

=
CALCULATE (
    AVERAGEX ( KEEPFILTERS ( VALUES ( 'Table'[Date] ) ), [Measure] ),
    ALLSELECTED ( 'Table'[Date] )
)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.