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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.