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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
mousumimandal
Regular Visitor

DAX calculation

I have below excel wherei need to calculated total count and result. if 2 or more record breach then it will be failed. and if time crosses 99 (only in True case) then it will be failed.

PriorityTicket noSLA breachDuration in sec
P11234TRUE100
P16854FALSE2
P36754FALSE3
P22453TRUE56
P28669TRUE78
P37585TRUE64

So, expected below output

PriorityTotal TicketResult
P13Fail
P22Fail
P32Pass

Any help would be appreciated

1 ACCEPTED SOLUTION

@mousumimandal 

pls try this

 

Measure =
VAR _count=CALCULATE(COUNTROWS('Table'),'Table'[SLA breach]=true())
VAR _time=sumx(FILTER('Table','Table'[SLA breach]=true()),'Table'[Duration in sec])
return if(_count>=2 ||_time>99,FALSE(),TRUE())
 
one more question , why the ticket no for P1 is 3?
 
11.PNG
 
pls see the attachment below
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
ryan_mayu
Super User
Super User

what do you mean by 2 or more record breach?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




It means 2 or more ticket breached ( SLA breach will be True) for a single type. for above example its P2, where breach count is 2 as both are True

@mousumimandal 

pls try this

 

Measure =
VAR _count=CALCULATE(COUNTROWS('Table'),'Table'[SLA breach]=true())
VAR _time=sumx(FILTER('Table','Table'[SLA breach]=true()),'Table'[Duration in sec])
return if(_count>=2 ||_time>99,FALSE(),TRUE())
 
one more question , why the ticket no for P1 is 3?
 
11.PNG
 
pls see the attachment below
 




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




I think its my typo mistake. I will check this solution. Thanks for your help

you are welcome





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.