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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
KOLD1313
New Member

UCL calculations limits and graph

Hello,

I am new to powerBi and I need to create a upper control limit that is generated base on the las 15 months data using 2 sigmas (UCL= overall average + 2sigma). The data I have is from different product and some mothns I dont record any values (see image below).  I want to use a slicer to be able to differenciate products.

Screenshot_20241004_093012_Sheets.jpg

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @KOLD1313 ,

Based on the testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1729495010655.png

2.Create the new measure to calculate average.

Average Rate = 
CALCULATE(
    AVERAGE('Table'[Rejects rate]),
    DATESINPERIOD('Table'[Date], MAX('Table'[Date]), -15, MONTH)
)

3.Create the new measure to calculate the std.

Std Rate = 
CALCULATE(
    STDEV.P('Table'[Rejects rate]),
    DATESINPERIOD('Table'[Date], MAX('Table'[Date]), -15, MONTH)
)

4.Create the measure to calculate the ucl.

UCL Rate = 
[Average Rate] + 2 * [Std Rate]

5.The result is shown below.

vjiewumsft_1-1729495030161.png

 

Best Regards,

Wisdom Wu

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
Anonymous
Not applicable

Hi @KOLD1313 ,

Based on the testing, please try the following methods:

1.Create the sample table.

vjiewumsft_0-1729495010655.png

2.Create the new measure to calculate average.

Average Rate = 
CALCULATE(
    AVERAGE('Table'[Rejects rate]),
    DATESINPERIOD('Table'[Date], MAX('Table'[Date]), -15, MONTH)
)

3.Create the new measure to calculate the std.

Std Rate = 
CALCULATE(
    STDEV.P('Table'[Rejects rate]),
    DATESINPERIOD('Table'[Date], MAX('Table'[Date]), -15, MONTH)
)

4.Create the measure to calculate the ucl.

UCL Rate = 
[Average Rate] + 2 * [Std Rate]

5.The result is shown below.

vjiewumsft_1-1729495030161.png

 

Best Regards,

Wisdom Wu

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

Ritaf1983
Super User
Super User

Hi @KOLD1313 

Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.

How to Get Your Question Answered Quickly  

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.