The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
looks like this | |||||||
Model | Invoice Price | Standard RRP | SOA1 | SRP1 | |||
START | 01/01/2025 | 01/01/2025 | |||||
END | 07/07/2025 | 07/07/2025 | |||||
item 1 | 145.9939 | 239.99 | 145.3917 | 0.99 | |||
item 2 | 152.0773 | 249.99 | 151.475 | 0.99 | |||
item 3 | 145.9939 | 239.99 | 145.3917 | 0.99 | |||
item 4 | 152.0773 | 249.99 | 151.475 | 0.99 | |||
item 5 | 310.2439 | 509.99 | 309.6417 | 0.99 | |||
item 6 | 364.9939 | 599.99 | 364.3917 | 0.99 | |||
item 7 | 486.6606 | 799.99 | 486.0583 | 0.99 | |||
item 8 | 194.6606 | 319.99 | 194.0583 | 0.99 | |||
want it to look like this | |||||||
Model | Invoice Price | Standard RRP | SOA1 | SRP1 | START | END | |
item 1 | 145.9939 | 239.99 | 145.3917 | 0.99 | 01/01/2025 | 07/07/2025 | |
item 2 | 152.0773 | 249.99 | 151.475 | 0.99 | 01/01/2025 | 07/07/2025 | |
item 3 | 145.9939 | 239.99 | 145.3917 | 0.99 | 01/01/2025 | 07/07/2025 | |
item 4 | 152.0773 | 249.99 | 151.475 | 0.99 | 01/01/2025 | 07/07/2025 | |
item 5 | 310.2439 | 509.99 | 309.6417 | 0.99 | 01/01/2025 | 07/07/2025 | |
item 6 | 364.9939 | 599.99 | 364.3917 | 0.99 | 01/01/2025 | 07/07/2025 | |
item 7 | 486.6606 | 799.99 | 486.0583 | 0.99 | 01/01/2025 | 07/07/2025 | |
item 8 | 194.6606 | 319.99 | 194.0583 | 0.99 | 01/01/2025 | 07/07/2025 | |
Hello. First time user and hoping for some help please. I have a table above which shows the START and END dates at the top of 2 of my columns. I have created a copy to show how I would like these to look as want the dates to appear at the end of each row.
thanks
jacc14
Solved! Go to Solution.
Hi
Welcome! You're very close—and this is a classic Power Query (Power BI or Excel) cleanup scenario. You're dealing with header metadata rows (START/END dates) that you want to transform into columns for each data row.
Let me walk you through how to do this step-by-step in Power Query, with a visual result like the one you're aiming for.
In Excel: Select your table → Data tab → From Table/Range → Load to Power Query.
In Power BI: Use Get Data → Excel → load the sheet/table to Power Query.
If your data looks like:
Row 1: Model, Invoice Price, Standard RRP, SOA1, SRP1
Row 2: START, , , 01/01/2025, 01/01/2025
Row 3: END, , , 07/07/2025, 07/07/2025
Then the actual data starts on row 4, and rows 2 & 3 contain metadata. So:
In Power Query: Remove top 1 row → Home tab → Remove Rows → Remove Top Rows → 1
Now you’ll see START and END as your first two rows.
Select Home > Use First Row as Headers — now your headers are the column names.
Create two new custom columns:
START
= #"Changed Type"{0}[SOA1]
END
= #"Changed Type"{1}[SOA1]
Replace "Changed Type" with the step name before this one if it differs.
What this does:
{0} = 1st row = START values.
{1} = 2nd row = END values.
We’re grabbing a representative column (SOA1) assuming dates are same across those columns.
Remove the first two rows (START and END):
Right-click on the row indicator (far left) of row 1 and row 2 → Remove.
Now you have your new columns (START, END) from earlier.
Their values are constant, but only appear once.
So: select START and
END columns →
Transform > Fill Down.
Move START and
END columns to the right of the main data using drag-and-drop in the column header area.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!@jacc14
Hi
Welcome! You're very close—and this is a classic Power Query (Power BI or Excel) cleanup scenario. You're dealing with header metadata rows (START/END dates) that you want to transform into columns for each data row.
Let me walk you through how to do this step-by-step in Power Query, with a visual result like the one you're aiming for.
In Excel: Select your table → Data tab → From Table/Range → Load to Power Query.
In Power BI: Use Get Data → Excel → load the sheet/table to Power Query.
If your data looks like:
Row 1: Model, Invoice Price, Standard RRP, SOA1, SRP1
Row 2: START, , , 01/01/2025, 01/01/2025
Row 3: END, , , 07/07/2025, 07/07/2025
Then the actual data starts on row 4, and rows 2 & 3 contain metadata. So:
In Power Query: Remove top 1 row → Home tab → Remove Rows → Remove Top Rows → 1
Now you’ll see START and END as your first two rows.
Select Home > Use First Row as Headers — now your headers are the column names.
Create two new custom columns:
START
= #"Changed Type"{0}[SOA1]
END
= #"Changed Type"{1}[SOA1]
Replace "Changed Type" with the step name before this one if it differs.
What this does:
{0} = 1st row = START values.
{1} = 2nd row = END values.
We’re grabbing a representative column (SOA1) assuming dates are same across those columns.
Remove the first two rows (START and END):
Right-click on the row indicator (far left) of row 1 and row 2 → Remove.
Now you have your new columns (START, END) from earlier.
Their values are constant, but only appear once.
So: select START and
END columns →
Transform > Fill Down.
Move START and
END columns to the right of the main data using drag-and-drop in the column header area.
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!@jacc14
This is great thank you. Works a treat.
kind regards
jacc14