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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
megelizstark
Frequent Visitor

Standard Deviation Flag

I am trying to get a 0 or 1 indicator if a value falls one standard deviation outside the mean for a variable period of time that can be changed.  I know this can be done for a column, but can it be done for a measure?

 

Can provide more detail if necessary

5 REPLIES 5
v-cherch-msft
Employee
Employee

Hi @megelizstark 

You may create a measure like below:

Measure_ = IF(MAX(Table2[Value])>[Standard Deviation],1,0)

1.png

Regards,

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

This response doesn't allow me to use a measure as Table 2[Value], it needs a column.  Is there a way to use a measure instead of a column here?

Hi @megelizstark 

You may try below measure.If it is not your case,please share some sample data and expected output which could reproduce your scenario.

Measure_ = IF([measure1]>[Standard Deviation],1,0)

Regards,

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

I think I was unclear, this did answer my initial question.  However, the actual solution that I need would be comparing the variance of a measure over time to the standard deviation.

 

Example:

Standard Deviation of Measure = 14.7%

Measure Yesterday = 80% (this measure can be looked at every day, by week, by month, and by year)

Measure Last Week: 85.4%

 

I want to see if the change in the measure day over day, week over week, month over month > the standard deviation for that period, and if so flag 1. 

 

Let me know if this makes sense.

 

I really appreciate your help!

Hi @megelizstark 

It seems you need to get the measure of last year,week.Below are some reference for you.

https://community.powerbi.com/t5/Desktop/Calculate-Week-over-Week-change-based-on-Number-of-weeks-si...

https://community.powerbi.com/t5/Desktop/Variance-between-two-measures/m-p/588970#M279325

Regards,

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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