Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Hi Everyone,
Apologies if this is actually really easy but whilst I know what I need to do, finding the DAX solution is proving tricky.
The scenario is I have numerous aggregated school attendance measures that give me an overall attendance figure that I can filter by various factors such as year group, gender, school etc. What I would like to do is take this calculation, calculate it inside a measure for all students row by row and return the number of students that are within certain bands; initially with students that are below 90% attendance.
As seen above, I can get this number by putting the measure in a table alongside the student name field or in this case a discreet identifier and applying a filter in the visual filters section. What I really want is a measure that returns just "31" so that I can then use that measure alongside time intelligence functions to track changes over time. I think this may involve utilising the COUNTIF function but I don't know the way to disaggregate the attendance measure to student level inside a measure prior to applying that. I would use a calculated column to provide the total attendance but I don't think that is the best way forward.
As a side note the attendance measure is drawn from an attendance table and takes the sum present sessions and then divides that by the sum possible sessions. Any suggestions would be appreciated.
Thanks in advance.
Solved! Go to Solution.
This sounds similar to a problem I posted about today - the same solution I was given might work for you:
This sounds similar to a problem I posted about today - the same solution I was given might work for you:
Thanks cadalano that sorted it. As I thought it was as simple a soloution as a thought it would be but I wouldn't have figured it out without your help.
User | Count |
---|---|
124 | |
108 | |
99 | |
65 | |
62 |
User | Count |
---|---|
137 | |
116 | |
102 | |
71 | |
61 |