Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Dear Team,
I have a requirement to display the records where they don't have punch-in for the specific day.
I wrote the below DAX only for today, and it's working perfectly.
DAX for Today only :-
@DivakarKrishna , Try like
VAR _date = Maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
and rest is same
Hi Amit bro @amitchandak ,
Tried this one already, but not working.. When I select date in date slicer, table returns blank value.
@DivakarKrishna , Try like
Check Employee =
VAR _date = MAXX(ALLSELECTED('Calendar'),'Calendar'[Date])
RETURN
IF (
COUNTROWS(
EXCEPT(
VALUES(PBI_WFC_Emp_Master[employeeId]),
summarize(filter(CALCULATETABLE(PBI_WFC_Time_Attendance,
USERELATIONSHIP(PBI_WFC_Emp_Master[employeeId],PBI_WFC_Time_Attendance[employeeId]) )
PBI_WFC_Time_Attendance[Punch In Date]= _date),PBI_WFC_Time_Attendance[employeeId])
)
)
>0,1,0)
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
User | Count |
---|---|
57 | |
22 | |
21 | |
19 | |
16 |
User | Count |
---|---|
87 | |
87 | |
52 | |
37 | |
23 |