The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have a few slicers for a report: Month, Year, Employee. In the data, there is a column that has an applicable "Inactive Date". Currently the report lists ALL employees that fall into the filter that is on the page itself and this works fine. Now I want to filter OUT any employee from the list if the Month and Year splicers are after the Inactive Date so the employee will filter off of the employee list.
An example: I select NOV 2023 and Joe Smith appears in the employee list. Joe Smith has an Inactive Date of December 5, 2023. Because the date is AFTER November, 2023 it is okay he appear on the list as there is valid data for Joe Smith. If I were to select DEC 2023, he should still appear because from Dec 1 to Dec 4 there might be valid data. However, if I were to select JAN 2024, Joe Smith should be filtered off the employee list.
What would be a way to do this? Maybe create a flag measure based on calculated dates and filter employees where this active flag is set to true?
Solved! Go to Solution.
@guyatisk , In case you have two dates, refer to the HR way of finding active between dates
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-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@guyatisk , In case you have two dates, refer to the HR way of finding active between dates
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-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Thank you sir! This does help. Have a great day
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
83 | |
73 | |
51 | |
42 |
User | Count |
---|---|
140 | |
112 | |
72 | |
64 | |
63 |