cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MuraliMani Regular Visitor
Regular Visitor

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Have Month column in matrix Visual Columns fields

@MuraliMani Could you please check your expected output...

 

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

 

image.png

 

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"

 



Did I answer your question? Mark my post as a solution !

Proud to be a Datanaut !





2 REPLIES 2
Super User
Super User

Re: Have Month column in matrix Visual Columns fields

@MuraliMani Could you please check your expected output...

 

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

 

image.png

 

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"

 



Did I answer your question? Mark my post as a solution !

Proud to be a Datanaut !





Community Support Team
Community Support Team

Re: Have Month column in matrix Visual Columns fields

Hi @MuraliMani,

 

Create a calculated column.

MonthName = RIGHT(Table5[Month],3)

Insert a Matrix visual.

1.PNG

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.