Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
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 dax breaks and gives weird data.
the months is the program months measure. the AMA is just getting a SUM of all years the and the ADA(Year) is for some reason just taking whatever the last year is.
Solved! Go to Solution.
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])
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])
Please provide your work-in-progress Power BI Desktop file (with sensitive information removed) that covers your issue or question completely in a usable format (not as a screenshot).
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
116 | |
108 | |
108 | |
93 | |
69 |
User | Count |
---|---|
171 | |
135 | |
132 | |
96 | |
94 |