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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon & SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.