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.
hello,
How do I get the data from the line above into the 'article number' column?
like this
Solved! Go to Solution.
@Frixel Try using
In the Power Query Editor, go to the "Add Column" tab.
Click on "Custom Column".
In the "Custom Column" dialog, you can use the following formula to shift the data from the line above into the 'article number' column:
m
= if Text.StartsWith([ColumnName], "Artikelnummer") then null else try #"Previous Row"[ColumnName] otherwise null
Replace ColumnName with the actual name of your column.
Fill Down the Values:
After creating the custom column, you need to fill down the values to propagate the 'article number' to the rows below.
Select the new custom column.
Go to the "Transform" tab.
Click on "Fill" > "Down".
Proud to be a Super User! |
|
Thanks for the reply from bhanu_gautam, please allow me to provide another insight.
Hi @Frixel ,
Select the 'Artikelnummer' column, in the 'Transform' tab, select 'Fill', then select 'Down'
The final result is as follows. Hopefully it will meet your needs.
Please see the attached pbix for reference.
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @Anonymous
The reason it didn't work for me was because there were empty lines. I filled the empty lines with 'null' and then the Fill down worked
Hi @Frixel ,
It looks like your problem has been solved, please mark the helpful reply and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster .
Thank you very much for your kind cooperation!
Best Regards,
Dengliang Li
@Frixel Try using
In the Power Query Editor, go to the "Add Column" tab.
Click on "Custom Column".
In the "Custom Column" dialog, you can use the following formula to shift the data from the line above into the 'article number' column:
m
= if Text.StartsWith([ColumnName], "Artikelnummer") then null else try #"Previous Row"[ColumnName] otherwise null
Replace ColumnName with the actual name of your column.
Fill Down the Values:
After creating the custom column, you need to fill down the values to propagate the 'article number' to the rows below.
Select the new custom column.
Go to the "Transform" tab.
Click on "Fill" > "Down".
Proud to be a Super User! |
|
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 |
---|---|
70 | |
64 | |
51 | |
39 | |
26 |
User | Count |
---|---|
86 | |
55 | |
44 | |
43 | |
36 |