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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jalaomar
Helper IV
Helper 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!

 

jalaomar_0-1675439149283.png

 

1 ACCEPTED SOLUTION

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.

lbendlin_0-1675610189347.png

 

see attached

View solution in original post

4 REPLIES 4
lbendlin
Super User
Super User

Your sample data is inconsistent. What is the correlation between ITG0.1, IT0.1 and ITG0 ?

Please provide sample data that covers your issue or question completely.
https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
Please show the expected outcome based on the sample data you provided.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

@lbendlin 

 

Some typo issue. But below should be consistent.

 

jalaomar_1-1675602740255.png

 

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.

lbendlin_0-1675610189347.png

 

see attached

@lbendlin Super this worked perfectly! 

Thanks

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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