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.
I have a Date table, using CALENDARAUTO().
I need to be able to have a date slicer (between dates type) using this table that will filter 3 things:
1 - Absent days (this is a table that states every absent day the employee had, like this (example):
Employee_ID | Absence_Type | Date |
345 | Sick Leave | 2023.12.01 |
345 | Sick Leave | 2023.12.02 |
2 - Employment start date, since I can't filter by current active employees, because I may want to see absenteeism in the past. So the max date I have put in the slicer should indicate the max Employment start date as well
3 -Employment date leave, for the same reason above. So the min date I have put in the slicer should indicate de min Employment date leave as well
(these last 2 columns are in a different table with Employee info, something like this:
Employee_ID | Emp_Dt_Start | Emp_Dt_Leave |
345 | 2021.03.01 | 2023.09.30 |
646 | 2023.08.01 | 9999.12.31 |
(9999.12.31 = is still active)
So today I have 3 slicers like this:
But I would like to have only 1 slicer, because they are just repeating themselves. Is this possible? I though about using the measure Max and Min of the date table and connect it somehow to the start and leave dates, but I am not sure how to do it.
Solved! Go to Solution.
Meanwhile, I found a solution:
I created this measure:
Meanwhile, I found a solution:
I created this measure:
Hi @Daniel_01
Please refer to the linked video tutorials:
https://www.youtube.com/watch?v=eiDWMqgKlZI
https://www.youtube.com/watch?v=fOcgIuaJHEs&t=1s
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @Ritaf1983 !
Thank you for replying. These videos don't answer my solution, however. The goal of the videos is to find people who have entered or left in those dates.
My goal, however, is to filter who was active during that period and know their absent days.
For example: I filter the dates between 2023.01.01 - 2023.06.31 (1st semester) and the visual table should show me all employees who were active during that period, even if just for a day (so their start date should be before 2023.06.31, and their leave date should be after 2023.01.01) and should tell me the number of days people were absent during that same period.
Sorry if I wasn't clear! I hope this clears things up.
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 |
---|---|
105 | |
96 | |
75 | |
63 | |
62 |
User | Count |
---|---|
137 | |
105 | |
104 | |
80 | |
63 |