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.
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
Solved! Go to Solution.
Rasca eso, he jugueteado con Advanced Query y lo he hecho funcionar. Gracias por su rápida solución eligante.
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"
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |