Forum Discussion
Dvayro
2 years agoFrequent Visitor
PQ: Row calculation based on previous row calculation | how to loop variable in PQ?
Hi, I'm trying to calculate inventory usage dates based on the demand and expiry. This allows us to show what inventory will go to waste based on current demand (allowing time to push sales deals...
lbendlin
2 years agoSuper User
Use List.Accumulate.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523
Dvayro
2 years agoFrequent Visitor
Sample data added.
List.Accumulate looks very promising.
I'm unsure how I would work with the multiple columns; I thought that lists are single column.