Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Have Month column in matrix Visual Columns fields

Hi All,

Good Day!!

 

I have table with Process, Month & SLA status, need your help to bring the month column in Table visual Columns like

Table

ProcessMonthSLA status
AP8-AugMissed
AP9-SepMet
AP10-OctMissed
AR8-AugMissed
AR9-SepMet
AR10-OctMissed
GA8-AugMissed
GA9-SepMet
GA10-OctMissed

 

in Power Matrix Visual like below

ProcessAugSepOct
APMetMissedMet
ARMetMetMissed
GAMetMissedMet

 

Thanks in advance.

 

  • Anonymous Could you please check your expected output...

     

    Is it something like this you are looking for....

     

     

    Please try this in "Power Query"...

     

    let
        Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcgxQ0lGy0HUsTQfSvpnFxakpSrE6UHFL3eDUApB4aglC0NBA1z+5BE11EA5TgrCZEoTDFHdH7KaAxdFNAQtimBILAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Process = _t, Month = _t, #"SLA status" = _t]),
        #"Changed Type" = Table.TransformColumnTypes(Source,{{"Process", type text}, {"Month", type text}, {"SLA status", type text}}),
        #"Inserted Text After Delimiter" = Table.AddColumn(#"Changed Type", "Text After Delimiter", each Text.AfterDelimiter([Month], "-"), type text),
        #"Renamed Columns" = Table.RenameColumns(#"Inserted Text After Delimiter",{{"Text After Delimiter", "MonthNew"}}),
        #"Removed Columns" = Table.RemoveColumns(#"Renamed Columns",{"Month"}),
        #"Pivoted Column" = Table.Pivot(#"Removed Columns", List.Distinct(#"Removed Columns"[MonthNew]), "MonthNew", "SLA status")
    in
        #"Pivoted Column"

     

2 Replies

  • PattemManohar's avatar
    PattemManohar
    Icon for Community Champion rankCommunity Champion

    Anonymous Could you please check your expected output...

     

    Is it something like this you are looking for....

     

     

    Please try this in "Power Query"...

     

    let
        Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcgxQ0lGy0HUsTQfSvpnFxakpSrE6UHFL3eDUApB4aglC0NBA1z+5BE11EA5TgrCZEoTDFHdH7KaAxdFNAQtimBILAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [Process = _t, Month = _t, #"SLA status" = _t]),
        #"Changed Type" = Table.TransformColumnTypes(Source,{{"Process", type text}, {"Month", type text}, {"SLA status", type text}}),
        #"Inserted Text After Delimiter" = Table.AddColumn(#"Changed Type", "Text After Delimiter", each Text.AfterDelimiter([Month], "-"), type text),
        #"Renamed Columns" = Table.RenameColumns(#"Inserted Text After Delimiter",{{"Text After Delimiter", "MonthNew"}}),
        #"Removed Columns" = Table.RemoveColumns(#"Renamed Columns",{"Month"}),
        #"Pivoted Column" = Table.Pivot(#"Removed Columns", List.Distinct(#"Removed Columns"[MonthNew]), "MonthNew", "SLA status")
    in
        #"Pivoted Column"

     

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi Anonymous,

     

    Create a calculated column.

    MonthName = RIGHT(Table5[Month],3)

    Insert a Matrix visual.

     

    Best regards,

    Yuliana Gu