The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Tengo la siguiente estructura en una tabla:
Nombre | Métrico | Julio 2025 | Agosto 2025 | Septiembre 2025 | Octubre 2025 | Noviembre 2025 | Dic 2025 | Enero 2026 |
Alfa | Volumen | 0.85304 | 0.145932 | 0.558814 | 0.260746 | 0.927412 | 0.938576 | 0.941928 |
Alfa | Superficie | 0.639594 | 0.845205 | 0.506164 | 0.789447 | 0.512091 | 0.180707 | 0.294231 |
Alfa | Largura | 0.364118 | 0.654881 | 0.232321 | 0.164225 | 0.434164 | 0.532053 | 0.047781 |
Gamma | Largura | 0.463719 | 0.525074 | 0.719842 | 0.531754 | 0.850802 | 0.85733 | 0.457149 |
Gamma | Superficie | 0.102247 | 0.543021 | 0.828911 | 0.148918 | 0.451905 | 0.778538 | 0.565927 |
Gamma | Volumen | 0.755331 | 0.397014 | 0.371991 | 0.975135 | 0.905638 | 0.957897 | 0.256631 |
Épsilon | Largura | 0.797444 | 0.079887 | 0.16339 | 0.417141 | 0.85473 | 0.583854 | 0.374728 |
Épsilon | Superficie | 0.259266 | 0.021544 | 0.367167 | 0.161125 | 0.102362 | 0.675798 | 0.317543 |
Épsilon | Volumen | 0.563734 | 0.348062 | 0.722632 | 0.764814 | 0.526606 | 0.261507 | 0.138122 |
Beta | Volumen | 0.098589 | 0.412391 | 0.637296 | 0.792191 | 0.260899 | 0.510029 | 0.925143 |
Beta | Superficie | 0.207163 | 0.14652 | 0.438347 | 0.716766 | 0.948066 | 0.049009 | 0.401906 |
Beta | Largura | 0.837054 | 0.93943 | 0.057844 | 0.242815 | 0.473492 | 0.536631 | 0.447548 |
Quiero poder trazar gráficos de líneas para las series "Volumen", "Superficie", "Longitud" en el eje de tiempo (X) como encabezados de columna. La segmentación de datos es la columna Nombre.
Por mi vida, he intentado pivotar, despivotar, transponer y demás, y no puedo encontrar la manera de poner la tabla en un formato adecuado para trazar esto. Por favor, ayuda. ¡Gracias!
Hola
Este código M transforma los datos de la siguiente manera
let
Source = Excel.CurrentWorkbook(){[Name="Data"]}[Content],
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Name", "Metric"}, "Attribute", "Value"),
#"Pivoted Column" = Table.Pivot(#"Unpivoted Other Columns", List.Distinct(#"Unpivoted Other Columns"[Metric]), "Metric", "Value"),
#"Changed Type" = Table.TransformColumnTypes(#"Pivoted Column",{{"Name", type text}, {"Attribute", type date}, {"Volume", type number}, {"Surface", type number}, {"Length", type number}})
in
#"Changed Type"
Espero que esto ayude.
Pruebe esta solución.
1. En Power Query, seleccione todas las columnas Mes Año y anule la dinamización.
Cambie el nombre de las columnas como desee.
2. Crear medida:
Metric Value = SUM ( 'Table'[Value] )
3. Crea elementos visuales: