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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
M_Donovan
Frequent Visitor

Matrix - Column order & Display with 0

Hi all

I am new to Power BI but have lots of excel and SQL experiance.

I am trying to use a matrix visual to show the columns in a custom order & display columns even if there are no values in the data set.

 

I have managed to get both done independently but cannot get them working together.  I implimented 'all categories shown' by using a reference table with all possible values contained and I implimented the ordering done by using an index/ordering table.

 

Below is with all categories shown and then with categories in the right order

 

1.PNG

 

2.PNG

 

 

Is there a way to impliment both at the same time?

 

Thanks in advance for any help provided

 

Regards

 

Michael

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi  @M_Donovan 

Just add "+0" in your measure formula

see more details by these link:

https://community.powerbi.com/t5/Desktop/show-items-with-no-data-as-0-instead-of-blanks/td-p/113160

https://radacad.com/replace-blank-with-zero-in-power-bi-visuals-such-as-card

 

By the way, the field in "Rows" and "Columns" need to from a dim table.

 

Regards,

Lin

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

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi  @M_Donovan 

Just add "+0" in your measure formula

see more details by these link:

https://community.powerbi.com/t5/Desktop/show-items-with-no-data-as-0-instead-of-blanks/td-p/113160

https://radacad.com/replace-blank-with-zero-in-power-bi-visuals-such-as-card

 

By the way, the field in "Rows" and "Columns" need to from a dim table.

 

Regards,

Lin

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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