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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
idra18
New Member

Visualize sharepoint list as a matrix

Hi,

 

I need help visualizing a List into powerbi as a Matrix.

 

Is there a way to make my Sharepoint List 

idra18_0-1696256595474.png

 To be shown in PowerBI with the following format?

idra18_1-1696256625074.png

 

 

Thank you in advance.

 

1 ACCEPTED SOLUTION
mlsx4
Memorable Member
Memorable Member

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)

mlsx4_0-1696259569503.png

 

2) Then, you should have a calendar table with Year, Month columns

3) You relate date with Calendar date field

mlsx4_1-1696259659979.png

4) Finally, you just create the matrix like this:

mlsx4_2-1696259703273.png

 

 

 

View solution in original post

2 REPLIES 2
idra18
New Member

Thanks @mlsx4 

mlsx4
Memorable Member
Memorable Member

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)

mlsx4_0-1696259569503.png

 

2) Then, you should have a calendar table with Year, Month columns

3) You relate date with Calendar date field

mlsx4_1-1696259659979.png

4) Finally, you just create the matrix like this:

mlsx4_2-1696259703273.png

 

 

 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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