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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

adding rows

Hi,

 Request your guidance to solve this issue of mine

In PBI  GET DATA   selected WEB and got the data loaded,  I would like to add a new row for  which iam not able to find a way, please guide me how to do this 

 

regards,

dsmitha 

1 ACCEPTED SOLUTION
tackytechtom
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

You can add a row in Power Query with the Table.InsertRows command.

 

Here an example that you can paste into the advanced editor after you have aadaoted it to your case. I made the row in question bold.

= let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSgWB9Q30jIyDDFIiDUlOUYnUgkiAxI5ikoQGQcC9KTc2DyxsDsQlcM6q8EdRwY7h+kOlOOaWpcGmwLpi0kQFcOhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Project #" = _t, #"Job #" = _t, Date = _t, Count = _t, Category = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Project #", Int64.Type}, {"Job #", Int64.Type}, {"Date", type date}, {"Count", Int64.Type}, {"Category", type text}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Job #", "Job"}, {"Project #", "Project"}}),
    #"Custom1" = Table.InsertRows(#"Renamed Columns",0, { [Project = 99, Job = 99, Date = "31/12/2022", Count = 99, Category = "Green"] })
in #"Custom1"

 

Here the result (the first row was the one which was appended afterwards):

tomfox_0-1649619276768.png

 

Let me know, if this works for you 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

View solution in original post

2 REPLIES 2
tackytechtom
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

You can add a row in Power Query with the Table.InsertRows command.

 

Here an example that you can paste into the advanced editor after you have aadaoted it to your case. I made the row in question bold.

= let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSgWB9Q30jIyDDFIiDUlOUYnUgkiAxI5ikoQGQcC9KTc2DyxsDsQlcM6q8EdRwY7h+kOlOOaWpcGmwLpi0kQFcOhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Project #" = _t, #"Job #" = _t, Date = _t, Count = _t, Category = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Project #", Int64.Type}, {"Job #", Int64.Type}, {"Date", type date}, {"Count", Int64.Type}, {"Category", type text}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Job #", "Job"}, {"Project #", "Project"}}),
    #"Custom1" = Table.InsertRows(#"Renamed Columns",0, { [Project = 99, Job = 99, Date = "31/12/2022", Count = 99, Category = "Green"] })
in #"Custom1"

 

Here the result (the first row was the one which was appended afterwards):

tomfox_0-1649619276768.png

 

Let me know, if this works for you 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

 



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Anonymous
Not applicable

Hi tomfox,

 

Thanks a ton, it worked perfectly 

 

regards,

 

dsmitha

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.