Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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úmero | Nombre |
1 | Ciudad de la Libertad |
2 | Gestión de residuos |
3 | Wentworth Property Co. |
4 | |
5 | Estrella Mountain Ranch |
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"
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
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.