Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have 3 measures:
The first one calculates a students attendance(This one works fine it counts specfic marks which are date stamped and divides by total) -
The second one then looks at the first measure and gives them a Y/N if they are below 96% -
Solved! Go to Solution.
Hi @lukeSDM ,
The third is meant to count those who have a Y from the previous measure -<96 = (COUNTROWS(FILTER('Pupil_Data','AttendanceOvertime'[pa y/n]="Y"))).
Try to count 'AttendanceOvertime' table, not 'Pupil_Data' table like these:
<96 =
COUNTROWS ( FILTER ( 'AttendanceOvertime', [pa y/n] = "Y" ) )
<96 =
CALCULATE (
DISTINCTCOUNT ( 'AttendanceOvertime'[Student] ),
FILTER ( 'AttendanceOvertime', [pa y/n] = "Y" )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @lukeSDM ,
The third is meant to count those who have a Y from the previous measure -<96 = (COUNTROWS(FILTER('Pupil_Data','AttendanceOvertime'[pa y/n]="Y"))).
Try to count 'AttendanceOvertime' table, not 'Pupil_Data' table like these:
<96 =
COUNTROWS ( FILTER ( 'AttendanceOvertime', [pa y/n] = "Y" ) )
<96 =
CALCULATE (
DISTINCTCOUNT ( 'AttendanceOvertime'[Student] ),
FILTER ( 'AttendanceOvertime', [pa y/n] = "Y" )
)
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@lukeSDM , I am not able see the group by/un summarized column of visual.
based on that try
COUNTROWS(FILTER(values('Pupil_Data','AttendanceOvertime'[Group by visual]) , [pa y/n]="Y"))
replace [Group by visual] with correct column
There is no columns they are all measures.
You can see the total in the table of the <96 measure is 5 which is incorrect as in the p/a y/n measure in the table shows more than 5 Y's.
This is how it looks in graph from and all weeks are wrong.
Many thanks,
@lukeSDM , what you are using on axis ? That is your group by
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
My attendance table has a relationship with a date table so I can timestamp students attendance during specific weeks.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
98 | |
79 | |
66 | |
60 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |