The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi all,
I am looking to show the number of days since latest date selected (from slicer) and annual leave recorded. A slicer also on dahsboard of the employee ID
I have column with everyday in it (calendardate) and a column that flags if annual leave is taken (1) or if it is not taken (0).
Example data set below:
Calendar Date | ID | Annual Leave |
02/02/2023 | 1001 | 0 |
03/02/2023 | 1001 | 1 |
04/02/2023 | 1001 | 0 |
05/02/2023 | 1001 | 0 |
06/02/2023 | 1001 | 0 |
07/02/2023 | 1001 | 0 |
08/02/2023 | 1001 | 0 |
09/02/2023 | 1001 | 0 |
So for example data set above - date slicer set at 09/02/2022 - i would expect my KPI card to show 6 days since annual leave?
Any help would be great. Thanks
Solved! Go to Solution.
That looks straightforward. What have you tried and where are you stuck?
Hi,
To be honest I have tried a number of things and nothing seems to be working... My theory behind it was to calculate max date where =1 in Annual leave column and then subtract that from today but that doesn't seem to be working... your help would be greatly appreciated.
Thanks
Thanks very much... worked perfectly.
User | Count |
---|---|
86 | |
86 | |
37 | |
35 | |
34 |
User | Count |
---|---|
94 | |
79 | |
63 | |
55 | |
51 |