Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
shahid_tanmoy
Helper I
Helper I

How do I add a row in my power query editor?

Hi there, 
I have a query that is sourced from a database, I want to add a row to it that is just null or something else written in it. 

There is no way to practically do it that I can see since the table wasnt manually created by me.

Is there any syntax that can do this? 

1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @shahid_tanmoy ,

 

Here're two methods for your reference.

Raw data:

vstephenmsft_0-1677461358228.png

 

Method 1:

Create a new table and append. Append queries - Power Query | Microsoft Learn

vstephenmsft_1-1677461409967.png

23.png

vstephenmsft_2-1677461483848.pngvstephenmsft_3-1677461488960.png

 

Method 2:

Add a step and enter as follows. How can I manually add a row to an existing table in Power Query? ~ Hey Niels!

vstephenmsft_6-1677462127765.png

= Table.InsertRows(
    #"Changed Type",
    1,
    {[ID = "C", Age = 23, Sales = 2000]}
)

vstephenmsft_5-1677462112057.png

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

 

View solution in original post

4 REPLIES 4
mguilday
Frequent Visitor

Just adding one other method that is similar to option 2 but easier for someone like me. If you go to the "Applied Steps" section and click on the gear to the right of "Source", it will open up the source table and you can scroll down, click the plus and then type in or paste all the extra rows you want to add. It's like the "clicks" version of option 2 from Stephen's awesome post above.

@mguildayThank you so much. I'm a complete noob to Power BI but am pretty adept with Tableau. Sorting columns or rows manually in tableau is pretty easy there. Am surprised at the number of hoops i have to jump through to get similar functionality here. Anyway your post above helped me solve it. Thank you!

v-stephen-msft
Community Support
Community Support

Hi @shahid_tanmoy ,

 

Here're two methods for your reference.

Raw data:

vstephenmsft_0-1677461358228.png

 

Method 1:

Create a new table and append. Append queries - Power Query | Microsoft Learn

vstephenmsft_1-1677461409967.png

23.png

vstephenmsft_2-1677461483848.pngvstephenmsft_3-1677461488960.png

 

Method 2:

Add a step and enter as follows. How can I manually add a row to an existing table in Power Query? ~ Hey Niels!

vstephenmsft_6-1677462127765.png

= Table.InsertRows(
    #"Changed Type",
    1,
    {[ID = "C", Age = 23, Sales = 2000]}
)

vstephenmsft_5-1677462112057.png

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

 

Thanks bruh, you a G man. Been looking all over the net for that simple ass code. 
Sadly its not going to work cause randomly, I was going to use a third table with just one column as a connector for 2 other tables to filter them but there are some blank columns, however, powerbi doesnt register the blank or null as a valid slicer option in practice for that blanks in the other tables. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.