Forum Discussion
SLA calculation
- 8 years ago
Tickets = COUNT(Table1[Ticket ID])
SLA%_2 = COUNT(Table1[SLA_Check - Text]) / CALCULATE(COUNT(Table1[SLA_Check - Text]), ALL(Table1[SLA_Check - Text]))
Is your Has Met SLA YES/NO (text) or 0/1 (bit)?
- ashaikh8 years agoHelper III
Its a text. Yes/No
- fhill8 years agoResident Rockstar
Hope this helps...
Measures:
Tickets = COUNT(Table1[Ticket ID]) // ALL Tickets (In a Table, Power BI automatically groups by values (i.e. Priority)
Pass_SLA = CALCULATE(COUNT(Table1[SLA_Check - Text]), // Counts # of Tickets
Table1[SLA_Check - Text] = "YES") // Filtering for only "YES"SLA% = [Pass_SLA] / CALCULATE(COUNT(Table1[SLA_Check - Text]), ALL(Table1[SLA_Check - Text]))
// The ALL brings back in ALL values, but still maintains the Table Measures (grouping i.e. Priority)
- fhill8 years agoResident Rockstar
Ignore my 0/1 column, I was building that direction until I got your reply. Forrest