This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
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.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 25 | |
| 24 | |
| 22 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 42 | |
| 21 | |
| 21 |