Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi Everyone,
I have just started to work on Power BI. I am stuck currently.
In the table, if there is a null value for a row, I want to create new rows and copy previous date's data in the rows but not the date. Date's value I want to copy from other column.
Below tables will give the idea of my problem and the output I need.
And the output table I need is as below-
Can someone please help me with this?
Solved! Go to Solution.
let
Source = your_table,
group = Table.Group(
Source, "DateRange",
{{"x", (x) => if x[Date]{0} = null then null else x},
{"Date", (x) => if x[Date]{0} = null then x[DateRange]{0} else x[Date]{0}}}
),
down = Table.FillDown(group, {"x"}),
xpand = Table.ExpandTableColumn(down, "x", {"Transactions"})
in
xpand
let
Source = your_table,
group = Table.Group(
Source, "DateRange",
{{"x", (x) => if x[Date]{0} = null then null else x},
{"Date", (x) => if x[Date]{0} = null then x[DateRange]{0} else x[Date]{0}}}
),
down = Table.FillDown(group, {"x"}),
xpand = Table.ExpandTableColumn(down, "x", {"Transactions"})
in
xpand
Thank you so much @AlienSx . Will try this. But I need to add rows as well. Number of rows to be added depends on number of transactions present for the previous date.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
10 | |
8 | |
6 | |
6 | |
6 |