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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
nicoportishead
New Member

Which Filter Functions should I use with my Upper Control Limit?

Hi everyone,

 

I am relatively new with DAX / Power BI and I am currently facing a problem with Filters (I think!) for creating an Upper Control Limit (UCL).

Here is the "draft" formula:

UCL = SUM(CANCELLED[cancelled])/(SUM(CANCELLED[cancelled])+SUM(CANCELLED[resulted]))+(3*SQRT(SUM(CANCELLED[cancelled])+SUM(CANCELLED[resulted])/CALCULATE(SUM(CANCELLED[cancelled]),'calendar'[calendar_date])))

And here is the kind of result I should get:

image.png 

Now for working properly I need to apply some Filter Functions into the Formula without withdraw filters (Site and Department) already applied at the page level from Power BI desktop. 

Into the formula, I have to make sure that for each "Sum" the system sums all the previous months except for the last one.The last "Sum" must have only the Sum for the month.

 

Should I use "ALLSELECTED" function in my formula? Or "ALLEXCEPT"?

Or I am not in the right direction and I have to create intermediate measures?

 

Thank you in advance for your help.

Nico

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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