March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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?
Solved! Go to Solution.
Hi @shahid_tanmoy ,
Here're two methods for your reference.
Raw data:
Method 1:
Create a new table and append. Append queries - Power Query | Microsoft Learn
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!
= Table.InsertRows(
#"Changed Type",
1,
{[ID = "C", Age = 23, Sales = 2000]}
)
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.
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!
Hi @shahid_tanmoy ,
Here're two methods for your reference.
Raw data:
Method 1:
Create a new table and append. Append queries - Power Query | Microsoft Learn
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!
= Table.InsertRows(
#"Changed Type",
1,
{[ID = "C", Age = 23, Sales = 2000]}
)
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |