March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello everyone!
I have a dataset of holidays whith every employee petition as a row. In the dataset there are also two dates and the number of days between those dates.
I would like to calculate the amount of holidays requested for each month but i'm facing some issues. Something similar to the manually collumn I worte below in "Comments" column.
Absence | Employee | Starting Date | Ending Date | Amount | Comments |
Holidays | 1023 | 29/05/2023 | 29/05/2023 | 1 | May |
Holidays | 1023 | 29/05/2023 | 30/05/2023 | 2 | May |
Holidays | 1012 | 29/05/2023 | 31/05/2023 | 3 | May |
Holidays | 1065 | 29/05/2023 | 02/06/2023 | 5 | 3 days in May 2 in June |
Holidays | 1065 | 29/05/2023 | 02/06/2023 | 5 | 3 days in May 2 in June |
Holidays | 1061 | 31/05/2023 | 02/06/2023 | 3 | 1 day in May, 2 in June |
Holidays | 1005 | 09/06/2023 | 09/06/2023 | 1 | June |
Holidays | 1043 | 09/06/2023 | 09/06/2023 | 1 | June |
Holidays | 1004 | 24/07/2023 | 28/07/2023 | 5 | July |
Holidays | 1004 | 24/07/2023 | 28/07/2023 | 5 | July |
Holidays | 1012 | 31/07/2023 | 31/07/2023 | 1 | July |
Holidays | 1012 | 31/07/2023 | 04/08/2023 | 5 | 1 day in July, 4 in August |
Holidays | 1023 | 31/07/2023 | 04/08/2023 | 5 | 1 day in July, 4 in August |
Holidays | 1045 | 03/08/2023 | 04/08/2023 | 2 | August |
Can someone please help me? I'm stucked with this... find attached the PBI file.
Regards,
Generic solution
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
Hi @Dnietota
unfortunately, there is no access to your file so I used a table that you attached.
You can achieve your goal with 2 calculated columns :
1. For delta between the days :
Link to pbix with the solution
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickl
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
121 | |
73 | |
59 | |
57 | |
45 |
User | Count |
---|---|
177 | |
120 | |
83 | |
66 | |
57 |