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.
Cómo crear un 'gráfico de barras agrupadas' para datos agregados que utilizan la misma fila con tres atributos diferentes.
Por alguna razón, no puedo encontrar una manera para que el 'series/eje compartido' se divida por atributo de columna. (Solo usará un atributo de columna a la vez, como 'Planificado', pero no los tres).
Conjunto de datos de ejemplo:
Título | Valor | Plan | Actual | Pronóstico |
Fila 1 | 10 | Ene 2020 | Ene 2020 | |
Fila 2 | 15 | Febrero de 2020 | Febrero de 2020 | |
Fila | 12 | Febrero de 2020 | Mar 2020 |
Algo como esto sería el resultado:
Solved! Go to Solution.
Esta transformación sin despivo debería ayudarle a obtener sus datos en un formato utilizable.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCsovVzBU0lEyNAASXol5CkYGRmhMBaVYHYhCI5BCUyDhlpqEkEXiQhWClBlhKvNNLIIqiwUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Title = _t, Value = _t, Plan = _t, Actual = _t, Forecast = _t]),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Title", "Value"}, "Attribute", "Value.1")
in
#"Unpivoted Other Columns"
Hola @trevorg
Si las publicaciones anteriores ayudan. por favor, márquelo amablemente como respuesta para ayudar a otros a encontrarlo más rápidamente.
@trevorg , con varias columnas no puede tener una leyenda.
Si desea que estas columnas como leyenda , debe despoducar los datos.
https://radacad.com/pivot-and-unpivot-with-power-bi
Transponer : https://yodalearning.com/tutorials/power-query-helps-transposing-data/
Esta solución funcionó para mí. Gracias.
No puedo marcarlo como aceptado, por alguna razón el javascript está siendo bloqueado en mi navegador de trabajo.
Esta transformación sin despivo debería ayudarle a obtener sus datos en un formato utilizable.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WCsovVzBU0lEyNAASXol5CkYGRmhMBaVYHYhCI5BCUyDhlpqEkEXiQhWClBlhKvNNLIIqiwUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Title = _t, Value = _t, Plan = _t, Actual = _t, Forecast = _t]),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Title", "Value"}, "Attribute", "Value.1")
in
#"Unpivoted Other Columns"
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 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |