swaroopjk's avatar
swaroopjk
Frequent Visitor
5 years ago
Status:
New

YTD Calculations

I have built a new measure to calculate YTD SLA using the below DAX:

SLA YTD = TOTALYTD((ABS(AVERAGE('Final Product Data_New'[Availability])),'Final Product Data_New'[All_Data.ort_start_date].[Date])

 

however the SLA score that is shown iin the visual using the above DAX does not match the manula calculation.

E.G: Product A has total outage minutes of 1140 from 1st Jan till date. Considering till 18th March we have 77 days for the YTD calculation. Below is the manula calculation and the score shown in the visual:

(no. of days X 1440 minutes - outage minutes)/total number of minutes x 100

(77 x 1440)-1140/77 x 1440) x 100

= (110880-1140/110880) x 100

= (109740/110880) x 100

= 98.97 %  and the calculation in the visual is 91.40%.

 

Please suggest.

 

 

 

4 Comments