Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I have the following Excel table:
Table
The column A and B are given data. The column A represents a duration of tasks in decimal format. And the column B represents the end date of the first task in date hour decimal format. What I need is a list of end dates, adding the respective duration to the previous end date as shown in column C. Is it possible in Power Query? I was trying to use List.Accumulate(), but I couldn't use it as well...
Solved! Go to Solution.
Hi @Anonymous ,
First, create a index column and this code for a custom column:
let _b = #"Added Index"[B]{0} in
List.Accumulate(
List.Combine(
{{_b},
List.Range(#"Added Index"[A], 0, [Index] + 1)}),
0, (s, c) => s + c)
Change the bold part with your last step name.
Hi,
If you are intersted in a DAX solution, then please share the link from where i can download your PBI file.
This tool will run by Excel, so I need to use the Power Query especifically. But thanks!!
Hi @Anonymous ,
First, create a index column and this code for a custom column:
let _b = #"Added Index"[B]{0} in
List.Accumulate(
List.Combine(
{{_b},
List.Range(#"Added Index"[A], 0, [Index] + 1)}),
0, (s, c) => s + c)
Change the bold part with your last step name.
Hi @camargos88 ,
Yes! This is exactly what I was trying to figure out. I didn't consider using list.combine, it was what was missing for reasoning.
Anyway, I didn't understand what {_b} means, could you please explain?
And really thanks for the help!
My best regards!!
Hello @Anonymous
Is this the output you are looking for?
If yes, then you can use a custom column to add the values of the first two column.
If not, then please share more details.
Cheers!
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Connect on LinkedIn
Hi @vivran22
This is not the output that I need. In this case, I don't have the list of end dates. I just have the end of the first row (the first task). And the next rows are sequential tasks.
Therefore, the second task will end with the following operation (end date of the first line + duration of the second task).
Anyway, the friend below presented the solution that I needed.
But thanks for the help !!
Best regards!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 71 | |
| 67 | |
| 65 |