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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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