Forum Discussion
arif_tsrm
2 years agoHelper I
Monthly line chart calculation
I have two fact table( FactDeskCapacity, FactStaffAttendance) connected with Dim Calender Table using key MonthName,
Have two measure "Desk Capacity" is count of Desk from FactDeskCapacity, and "Total Staff Attendance" is DistinctCount of Date from FactStaffAttendance, please see the picture, now I want to show in a monthly line chart, in a month how many days "Total Staff Attendance" is greater than "Desk Capacity", for example the result will be 2 for february ( 7 , 9 th February)
6 Replies
- arif_tsrmHelper I
Thank you for you reply, I have using your above measure but not working , please see my below measure
test = var tst=CALCULATE(COUNT(FactStaffAttendance[DateOnly]),FILTER(FactStaffAttendance, [Total Staff Attendance]>[Desk Capacity]))return tst