Forum Discussion

SM_1997_'s avatar
SM_1997_
Frequent Visitor
4 years ago
Solved

Line Value cannot say zero percent

Hello, I am having an issue with getting my line value to say zero percent. I have a measure called SLA Achieved % that divides the number of rows that are true by the total number of rows. On my axis I have week numbers.

 

My Dashboard: https://gyazo.com/f07a81943e1cd889ad0d5b3e53b40084

My Measure: 

SLA Achieved % = DIVIDE(CALCULATE(Countrows(Closed),Closed[taskslatable_has_breached]="False"),COUNTROWS(Closed))

 

Some of the week numbers contain both the number of tickets closed and the number with SLA achieved,

some contain only the number of closed incidents, (see Week 41 under P1 Incidents)

some contain no data at all.

 

On the weeks where there is at least one ticket closed but none with SLA Achieved I cannot get my line value to say zero percent.

 

I am aware of the "+0" workaround that I can put on the end of a measure but it will add zero percent on the weeks with no data which I don't want. 

 

Does anyone know of a way I can force my measure to display zero when there is data for closed incidents and none for SLA achieved but display nothing for the weeks where there is no data?

 

Thank you in advance.

 

3 Replies