Forum Discussion
Selecting only the latest date between many using DAX
Hello everyone,
Happy new year ! 🎉
It's my first time asking a question here, but I am cornered, hope one of you will be able to help me !
Here is the situation : I want to create a matrix using an extraction from my HR tool. The use is to follow if my employees have had their interview with their managers every 2 years (after the hiring).
The extraction gives me all the interviews of the employees but I only want to use the latest.
I created a new metric to filter the table using this DAX expression :
It works, now I only see one line for each employee (when Not OK) BUT (and here is my problem), I also want to calculate the penalty tax if the interview hasn't been done on time (NOK).
I thought that I can modify it by selecting "don't resume" on the visualisation pannel :
but this earase the "Total" line and I need it.
=IF([Date d'entretien]=date_recente,TRUE,FALSE)
Do you have any idea of what I can do ?
Thank you in advance !
2 Replies
- amitchandakSuper User
Anonymous ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.refer if these approaches can help
Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970Between Dates - Dates between
Measure way
Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM
https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-or-end-date/ba-p/1503785Tables way
https://amitchandak.mediumcom/dax-get-all-dates-between-the-start-and-end-date-8f3dac4ff90b
https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2- AnonymousNot applicable
Thank you for your answer !
I think I can but I don't know how to share it here, can you tell me (it's embarassing, sorry) ?
Thx !