Forum Discussion
Auski
Advocate I
3 years agoCalculating 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.
| Name | Date | Three Point Check |
| Andy | 25/07/2023 | Required |
| Andy | 25/07/2023 | Not Required |
| Mandy | 25/07/2023 | Required |
| Mandy | 25/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 🙂
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]="")If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
3 Replies
- Ritaf1983
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]="")If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly