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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
dylantaylor
New Member

Relleno automático de celdas en blanco con nombres

Hola

¿Es posible utilizar la función de relleno en Power Query Editor para rellenar celdas en blanco con nombres? En este ejemplo, estoy tratando de llenar "Wentworth Property Co" solo a la celda en blanco de abajo, deteniéndose en "Estrella Mountain Ranch" a continuación:

NúmeroNombre
1Ciudad de la Libertad
2Gestión de residuos
3Wentworth Property Co.
4
5Estrella Mountain Ranch

4 REPLIES 4
az38
Community Champion
Community Champion

Hola @dylantaylor

en su caso, pruebe esta solución alternativa:

1. Recortar columna

2. Reemplace el valor "" a null

3. Rellenar columna

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("HYvLCsJADEV/JWRdBF9fUHTXIm5cDLOIGm2hk5Q0Rfx74+zOPYebEvZrubNhgz0Vxtwk3MZoR/+CvuBszE8t1e/C32hxho6E3lxYvIb9P8T4qPkAF9OZLe6tbmo+RIZKx6DT4sbTRNDpKk6jwJXkMWDOPw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [#"(blank)" = _t, #"(blank).1" = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"(blank)", type text}, {"(blank).1", type text}}),
    #"Promoted Headers" = Table.PromoteHeaders(#"Changed Type", [PromoteAllScalars=true]),
    #"Changed Type1" = Table.TransformColumnTypes(#"Promoted Headers",{{"Number", Int64.Type}, {"Name", type text}}),
    #"Trimmed Text" = Table.TransformColumns(#"Changed Type1",{{"Name", Text.Trim, type text}}),
    #"Replaced Value" = Table.ReplaceValue(#"Trimmed Text","",null,Replacer.ReplaceValue,{"Name"}),
    #"Filled Down" = Table.FillDown(#"Replaced Value",{"Name"})
in
    #"Filled Down"

Снимок.PNG


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
camargos88
Community Champion
Community Champion

Hola @dylantaylor ,

Puede usar fill down para ello. Fill down obtiene el último valor non null y se rellena hasta el último valor nulo.... para cada ocurrencia.

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

Sí, es posible.

Mejor
D
affan
Solution Sage
Solution Sage

Hola @dylantaylor

No estoy seguro, pero puede intentar usar la creación de una columna a partir de ejemplos en el Editor de consultas. Echa un vistazo a esta https://docs.microsoft.com/en-us/power-bi/desktop-add-column-from-example

Si esto le ayudó, por favor marque este post como una solución aceptada y le gusta dar KUDOS .

saludos

Affan Farooqi

Linkedin

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors