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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

¿Existe una función de resumen inverso o des-resumir?

Tengo una tabla que resume el precio y la frecuencia del producto. Deseo realizar una serie de funciones estadísticas en la tabla, como el promedio, la desviación estándar y deseo usar algunas imágenes que requieren los datos en un solo coloum descompuso: - ¿Cuál es la mejor manera de hacerlo?

Tabla actual:

Precio, Frecuencia

12.99, 3

4.50, 1

8.95, 3

Columna deseada:

12.99

12.99

12.99

4.50

8.95

8.95

8.95

1 ACCEPTED SOLUTION

Rasca eso, he jugueteado con Advanced Query y lo he hecho funcionar. Gracias por su rápida solución eligante.

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMjTSs7RU0lEyVorViVYy0TMFsg3BbAs9S1OIRCwA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Price = _t, Frequency = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Price", type number}, {"Frequency", Int64.Type}}),

    Repeated = Table.CombineColumns(#"Changed Type", {"Price", "Frequency"}, each List.Repeat({_{0}}, _{1}), "Price"),
    #"Expanded Price" = Table.ExpandListColumn(Repeated, "Price")
in
    #"Expanded Price"

CNENFRNL_0-1656074368465.png

Gracias, ¿se puede simplificar y expresar esto en acciones individuales de Power Query? o como una nueva medida en PBI?

Rasca eso, he jugueteado con Advanced Query y lo he hecho funcionar. Gracias por su rápida solución eligante.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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