Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Need the dax logic when employee terminates on particular month , from that month onwards head count shows as 0 , before the terminating month shows as 1 , in this eg ravi terminates jun 23 from jun 23 onwards hc shows as 0 before that dates shows as 1
please give the logic for head count of emp . data is as below format
Solved! Go to Solution.
Hi @sunil222 ,
If I understand correctly, the issue is that you want to use the DAX formula to count of emp. Please try the following DAX formula and check if they can solve your problem:
1.Create the two simple table.
2.Create the new measure.
Measure = IF(MAX('Date table 2'[Date]) < MAX('Table'[Iwd]), 1, 0)
3.Select the matrix visual. Drag the emp to the Rows, drag the Date table Date to the Columns and drag the measure to the Values.
4.The result is shown below.
Best Regards,
Wisdom Wu
Hi @sunil222 ,
If I understand correctly, the issue is that you want to use the DAX formula to count of emp. Please try the following DAX formula and check if they can solve your problem:
1.Create the two simple table.
2.Create the new measure.
Measure = IF(MAX('Date table 2'[Date]) < MAX('Table'[Iwd]), 1, 0)
3.Select the matrix visual. Drag the emp to the Rows, drag the Date table Date to the Columns and drag the measure to the Values.
4.The result is shown below.
Best Regards,
Wisdom Wu
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.