Forum Discussion
jalaomar
3 years agoHelper IV
Presenting data in Matrix table
Hi all, Anyone who would know how to arrive to the best desired outcome on presenting data in Matrix table? Please see Picture. would appriciate it a lot!
- 3 years ago
Your source data is not in a usable format. First step is to modify the structure to make it usable.
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUTIFYmMgNjIwMtI1MNQ1gHMMjXSNDZRidaKVnKBqTJHVmUA4xlAOSJ0zUMgQoQ4iZQjnGIEMj40FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Work ID" = _t, #"ITG0.1 Tollgate decision" = _t, #"ITG0 Tollgate decision" = _t, #"ITG0.1 Decision Date" = _t, #"ITG0 Decision Date" = _t]), #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Work ID"}, "Attribute", "Value"), #"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Attribute", Splitter.SplitTextByEachDelimiter({" "}, QuoteStyle.Csv, false), {"Level", "Attribute"}), #"Pivoted Column" = Table.Pivot(#"Split Column by Delimiter", List.Distinct(#"Split Column by Delimiter"[Attribute]), "Attribute", "Value", List.Max) in #"Pivoted Column"Then you can use conditional formatting to achieve your desired result.
see attached
lbendlin
3 years agoSuper User
Your source data is not in a usable format. First step is to modify the structure to make it usable.
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUTIFYmMgNjIwMtI1MNQ1gHMMjXSNDZRidaKVnKBqTJHVmUA4xlAOSJ0zUMgQoQ4iZQjnGIEMj40FAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Work ID" = _t, #"ITG0.1 Tollgate decision" = _t, #"ITG0 Tollgate decision" = _t, #"ITG0.1 Decision Date" = _t, #"ITG0 Decision Date" = _t]),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Work ID"}, "Attribute", "Value"),
#"Split Column by Delimiter" = Table.SplitColumn(#"Unpivoted Other Columns", "Attribute", Splitter.SplitTextByEachDelimiter({" "}, QuoteStyle.Csv, false), {"Level", "Attribute"}),
#"Pivoted Column" = Table.Pivot(#"Split Column by Delimiter", List.Distinct(#"Split Column by Delimiter"[Attribute]), "Attribute", "Value", List.Max)
in
#"Pivoted Column"
Then you can use conditional formatting to achieve your desired result.
see attached