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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Ayllar
Regular Visitor

i need to create a measure to show the sum just for the values that are #Above the USL (Upper Spec L

Hi, i need to create a measure to show the sum just for the values that are #Above the USL (Upper Spec Limit), and another one to show the sum just for the values that are #Below the USL (Upper Spec Limit), needs to be done as a measure becasue the limits varies depending on different selections. The results must be 52 above and 42 below. I alredy try a CALCULATE IF stating the sum the ones that are less than the USL, but it is not working. The USL and LSL vary depending on the filters and diferentes categories.Untitled.png


[1]: https://i.stack.imgur.com/5sje0.png

 

 

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Ayllar Assuming you have a measure for the Upper Spec Limit, you could do something like this:

Measure = 
  VAR __USL = [USL Measure]
  VAR __Table = FILTER('Table', [Column] > __USL)
  VAR __Result = COUNTROWS( __Table )
RETURN
  __Result


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi @Greg_Deckler i did the suggested formula but is giving the same result 1348 which is the sum of all measures: 

No. Above Specs =
  VAR __USL = [USL After]
  VAR __Table = FILTER(Data, [No. of Ocurrences] > __USL)
  VAR __Result = COUNTROWS( __Table )
RETURN
  __Result

Ayllar_0-1701697367023.png

Ayllar_1-1701697538404.png

 

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.