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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors