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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sivaksk147
Frequent Visitor

True SLA Percentage by customer wise

Hi Team,

 

I am looking for some help to create a DAX formula for achieving the only True SLA percentage by customer wise. 

 

I have tried multiple solutions it's not working. appreciate your help.

 

Find the sample content for your reference

 

CustomerTicket IDSLA
A1456FALSE
A1457TRUE
A1458FALSE
A1459FALSE
B1460TRUE
B1461TRUE
B1462FALSE
B1463FALSE
C1464TRUE
C1465TRUE
C1466TRUE
C1467FALSE
1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@sivaksk147 

Add the following measure to a table visual where you have your customers:

TRUE SLA % = 
IF(
    HASONEVALUE(Table12[Customer]),
    DIVIDE(
        CALCULATE( COUNTROWS(Table12), Table12[SLA] = TRUE() ),
        COUNTROWS(Table12)
    )
)

Fowmy_0-1621537254836.png

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

3 REPLIES 3
Fowmy
Super User
Super User

@sivaksk147 

Add the following measure to a table visual where you have your customers:

TRUE SLA % = 
IF(
    HASONEVALUE(Table12[Customer]),
    DIVIDE(
        CALCULATE( COUNTROWS(Table12), Table12[SLA] = TRUE() ),
        COUNTROWS(Table12)
    )
)

Fowmy_0-1621537254836.png

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Thank you very much for your support. the solution worked as I desired.  

HashamNiaz
Solution Sage
Solution Sage

Hi @sivaksk147 !

 

Please post the desired output as well. How you want to calculate SLA percentage a business description.

 

Regards,

Hasham

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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