Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register 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! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
144 | |
72 | |
62 | |
52 | |
48 |
User | Count |
---|---|
208 | |
89 | |
61 | |
59 | |
57 |