Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi Power BI Community
I have this column generates a list of months between two dates.
However I want the list to be diffrent based on a value called periodes that determines how many months the list should jump between each row.
Now I have this code.
= Table.AddColumn(#"Filtered Rows2", "Month",
(r) => List.Generate(
()=>[x=r[Next_invoice_date]],
each [x]<=r[Expire_date],
each [x=Date.AddMonths([x],1)],
each [x]))
But I want the number 1 to be repalce with the value in a colum called Period
Does anyone knows how to do that?
All help will be greatly appreciated.
Solved! Go to Solution.
1 --> r[Period]
r = actual row
= Table.AddColumn(#"Filtered Rows2", "Month",
(r) => List.Generate(
()=>[x=r[Next_invoice_date]],
each [x]<=r[Expire_date],
each [x=Date.AddMonths([x],r[Period])],
each [x]))
Stéphane
1 --> r[Period]
r = actual row
= Table.AddColumn(#"Filtered Rows2", "Month",
(r) => List.Generate(
()=>[x=r[Next_invoice_date]],
each [x]<=r[Expire_date],
each [x=Date.AddMonths([x],r[Period])],
each [x]))
Stéphane
Thanks again. 🙂
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.