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.
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.
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 |
---|---|
46 | |
28 | |
22 | |
12 | |
8 |
User | Count |
---|---|
75 | |
53 | |
46 | |
15 | |
12 |