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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
rockonron
Frequent Visitor

Standard deviation across the entire range

Hello Guys,

 

New to Power BI so please excuse me if my question sounds strange.

 

I was looking for a way to store a global variable that can be used across a report let me explain.

 

We have profit per customers and want to be able to show customers whose profit falls outside the standard deviation. I can calculate the deviation no problem, however the issue arises when i want to try visualise it.

 

Power BI seems to calculate the standard deviation for each customervinstead of across the entire range. so when we place this measure in as line on a graph,the graph shows how the customers prices deviated as opposed to the entire set.

 

I have played around with storing the standard deviation in a table on its own, which works, however it is not dynamic, i.e. not affected by slicers on the dashboard.

 

Hopefully someone can help, if you need anymore info from me please ask.

 

Ronan

 

 

 

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @rockonron,

 

Based on my understanding, you want to add a line in a column chart to display standard deviation values for all profits, right?

 

In your scenario, you can create a measure use STDEV.P( ) function like below:

 

Standard deviation = CALCULATE( STDEV.P(Sheet4[profit]), ALLSELECTED( Sheet4[customer]) )

 

Then place this measure in Line values property like below:

 

q3.PNG

 

 

If you have any question, please feel free to ask.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @rockonron,

 

Based on my understanding, you want to add a line in a column chart to display standard deviation values for all profits, right?

 

In your scenario, you can create a measure use STDEV.P( ) function like below:

 

Standard deviation = CALCULATE( STDEV.P(Sheet4[profit]), ALLSELECTED( Sheet4[customer]) )

 

Then place this measure in Line values property like below:

 

q3.PNG

 

 

If you have any question, please feel free to ask.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks @v-qiuyu-msft thats perfect, have applied it to some test data and seems to work as planned.

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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