Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I need help visualizing a List into powerbi as a Matrix.
Is there a way to make my Sharepoint List
To be shown in PowerBI with the following format?
Thank you in advance.
Solved! Go to Solution.
Hi @idra18
You must follow these steps:
1) When you import your Sharepoint list, you need to unpivot DMC, VAM and MPC. In this case:
let
Origen = Excel.Workbook(File.Contents("C:\ex.xlsx"), null, true),
Hoja1_Sheet = Origen{[Item="Hoja1",Kind="Sheet"]}[Data],
#"Encabezados promovidos" = Table.PromoteHeaders(Hoja1_Sheet, [PromoteAllScalars=true]),
#"Tipo cambiado" = Table.TransformColumnTypes(#"Encabezados promovidos",{{"Date", type date}, {"Xpoint", type text}, {"Target", type text}, {"DMC", Int64.Type}, {"VAM", Int64.Type}, {"MPC", Int64.Type}}),
#"Columna de anulación de dinamización" = Table.UnpivotOtherColumns(#"Tipo cambiado", {"Date", "Xpoint", "Target"}, "Atributo", "Valor"),
#"Columnas con nombre cambiado" = Table.RenameColumns(#"Columna de anulación de dinamización",{{"Atributo", "Category"}, {"Valor", "Value"}})
in
#"Columnas con nombre cambiado"
To do it, you select the three columns and click on Transform >Unpivot (rename Attribute as Category)
2) Then, you should have a calendar table with Year, Month columns
3) You relate date with Calendar date field
4) Finally, you just create the matrix like this:
Hi @idra18
You must follow these steps:
1) When you import your Sharepoint list, you need to unpivot DMC, VAM and MPC. In this case:
let
Origen = Excel.Workbook(File.Contents("C:\ex.xlsx"), null, true),
Hoja1_Sheet = Origen{[Item="Hoja1",Kind="Sheet"]}[Data],
#"Encabezados promovidos" = Table.PromoteHeaders(Hoja1_Sheet, [PromoteAllScalars=true]),
#"Tipo cambiado" = Table.TransformColumnTypes(#"Encabezados promovidos",{{"Date", type date}, {"Xpoint", type text}, {"Target", type text}, {"DMC", Int64.Type}, {"VAM", Int64.Type}, {"MPC", Int64.Type}}),
#"Columna de anulación de dinamización" = Table.UnpivotOtherColumns(#"Tipo cambiado", {"Date", "Xpoint", "Target"}, "Atributo", "Valor"),
#"Columnas con nombre cambiado" = Table.RenameColumns(#"Columna de anulación de dinamización",{{"Atributo", "Category"}, {"Valor", "Value"}})
in
#"Columnas con nombre cambiado"
To do it, you select the three columns and click on Transform >Unpivot (rename Attribute as Category)
2) Then, you should have a calendar table with Year, Month columns
3) You relate date with Calendar date field
4) Finally, you just create the matrix like this:
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
53 | |
50 | |
40 | |
40 |