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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

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
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.

Top Kudoed Authors