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
Zyg_D
Continued Contributor
Continued Contributor

Transforming the matrix visualization to look more like a table

This is the data: 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUSqpLEg1BNKJJSVFmUmlJWCOkYGhhVKsDn4VloRUGBmAVTgRNAOPCqgZzlAVRjjNwKMCaoYLNhVGcBWxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, Type = _t, Attribute = _t, Years = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Name", type text}, {"Type", type text}, {"Attribute", type text}, {"Years", Int64.Type}})
in
    #"Changed Type"

 
data.JPG

 

My current Matrix visualization looks like this: 
current_result.JPG

How can I remove the grouping (it results in 2 almost empty (thus useless) rows)? The desired result should look like this: 
desired_result.JPG

2 ACCEPTED SOLUTIONS
AllisonKennedy
Super User
Super User

You can turn the stepped layout off. https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

amitchandak
Super User
Super User

@Zyg_D ,  The nearest you can have is stepped layout off.  But that will show value once for repeating values

 

refer: https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Zyg_D ,  The nearest you can have is stepped layout off.  But that will show value once for repeating values

 

refer: https://www.burningsuit.co.uk/blog/2019/04/7-secrets-of-the-matrix-visual/

 

Pragati11
Super User
Super User

Hi @Zyg_D ,

 

You can try creating a measure:

 

nameCount = IF(COUNT([Name]) = BLANK(), 0, COUNT([Name]))

 

Move this measure to the VALUES section of your matrix chart.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Zyg_D
Continued Contributor
Continued Contributor


@Pragati11 wrote:

Hi @Zyg_D ,

You can try creating a measure:

nameCount = IF(COUNT([Name]) = BLANK(), 0, COUNT([Name]))

Move this measure to the VALUES section of your matrix chart.


Hi, Pragati. I tried your suggestion. Sorry to say, but replacing Count of Name with this measure does not change a single thing in the report. 

AllisonKennedy
Super User
Super User

You can turn the stepped layout off. https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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.