Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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.
If someone is looking for a definitive solution and the previous ones did not work for them as they did for me with this code I could add it:
check this out:
https://youtu.be/kw48Jr-TrZo?si=c50wjCaS2Ett92KN
for tables from database
and for enter data :
https://youtu.be/L9reA7CxfSg?si=Chhzp1QGiLpe6jx3
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.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 18 | |
| 16 |
| User | Count |
|---|---|
| 67 | |
| 63 | |
| 30 | |
| 30 | |
| 23 |