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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors