Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
User | Count |
---|---|
90 | |
89 | |
79 | |
70 | |
68 |
User | Count |
---|---|
222 | |
128 | |
117 | |
82 | |
77 |