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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Syndicate_Admin
Administrator
Administrator

agregar filas

Hola

Solicite su orientación para resolver este problema mío

En PBI GET DATA seleccionó WEB y se cargaron los datos, me gustaría agregar una nueva fila para la cual no puedo encontrar una manera, por favor guíame cómo hacer esto

saludos

dsmitha

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@dsmitha ,

Puede agregar una fila en Power Query con el comando Table.InsertRows.

Aquí un ejemplo que puede pegar en el editor avanzado después de haberlo asignado a su caso. Hice la fila en cuestión en negrita.

= 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(#"Columnas renombradas",0, { [Proyecto = 99, Trabajo = 99, Fecha = "31/12/2022", Recuento = 99, Categoría = "Verde"] })
in #"Custom1"

Aquí el resultado (la primera fila fue la que se agregó después):

tomfox_0-1649619276768.png

Hágamelo saber, si esto funciona para usted 🙂

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

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@dsmitha ,

Puede agregar una fila en Power Query con el comando Table.InsertRows.

Aquí un ejemplo que puede pegar en el editor avanzado después de haberlo asignado a su caso. Hice la fila en cuestión en negrita.

= 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(#"Columnas renombradas",0, { [Proyecto = 99, Trabajo = 99, Fecha = "31/12/2022", Recuento = 99, Categoría = "Verde"] })
in #"Custom1"

Aquí el resultado (la primera fila fue la que se agregó después):

tomfox_0-1649619276768.png

Hágamelo saber, si esto funciona para usted 🙂

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

Hi tomfox,

Gracias una tonelada, funcionó perfectamente

saludos

dsmitha

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors