Forum Discussion

08Tedz40's avatar
08Tedz40
Frequent Visitor
3 years ago
Solved

Help finding correct DAX.

I need some help fining the correct Dax to so that this ADA doesn't break when it combimes the Multi years. they seem to work at the month level and year but once you start selecting multi years the ...
  • 08Tedz40's avatar
    3 years ago

    I was able to fix it with these 2 functions.

    Average Attendance (AMA) = CALCULATE(IF([Program Months]>[Progarm Months Ran],[Average Yearly Attendace (AYA)]/[Progarm Months Ran],[Average Yearly Attendace (AYA)]/[Program Months]))

    Average Yearly Attendace (AYA) = CALCULATE(SUM([ADA])/[Program Year])