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
Auski
Helper I
Helper I

Calculating Percentages base on text count

Hi all,

 

I had great success reaching out last time, I thought I would try again...

 

In PBI, I have a column called Three Point Check that contains either 'Required', 'Not Required' or blank.

 

NameDateThree Point Check
Andy25/07/2023Required
Andy25/07/2023Not Required
Mandy25/07/2023Required
Mandy25/07/2023 

 

The formula (once pivoted in excel) used to give an SLA is:

=SUM('Not Required'+'Required')/('Not Required'+'Required'+ blank)

Essentially, I'm hoping someone is clever enough to formulate a DAX to find out each agents SLA per day.

Hope this makes sense. Thank you for your time 🙂

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Auski 

Try :

Sla = cALCULATE(COUNTROWS('Table'),'Table'[Three Point Check]="Not Required" || 'Table'[Three Point Check]="Required")/
 cALCULATE(COUNTROWS('Table'),'Table'[Three Point Check]="Not Required" || 'Table'[Three Point Check]="Required" ||  'Table'[Three Point Check]="")
Ritaf1983_0-1690341834082.png
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @Auski 

Try :

Sla = cALCULATE(COUNTROWS('Table'),'Table'[Three Point Check]="Not Required" || 'Table'[Three Point Check]="Required")/
 cALCULATE(COUNTROWS('Table'),'Table'[Three Point Check]="Not Required" || 'Table'[Three Point Check]="Required" ||  'Table'[Three Point Check]="")
Ritaf1983_0-1690341834082.png
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Amazing! Thank you so much @Ritaf1983

Glad to help 🙂

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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