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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Shanvitha_V
Frequent Visitor

Matrix value No Empty

HI Export below my input

Shanvitha_V_0-1669483935282.png

 

 

I have tried my Power BI report using Matrix below like

Shanvitha_V_1-1669484586768.png


my problem is Jan-22 IND is blank(NO values in source table)
Feb-22 USA is BLank
I need where Blank values replace Zero.

Expected Output.

Shanvitha_V_2-1669484703481.png

 

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

Hi @Shanvitha_V ,

I created a sample pbix file(see the attachment) for you, please check whether that is what you want.

1. Create a country dimension table using below formula

Countries = VALUES('Table'[Country])

yingyinr_0-1669620430493.png

yingyinr_1-1669620449726.png

2. Create a measure as below:

Measure = SUM('Table'[Amount])+0

3. Create a matrix visual as below(Rows:  field [Month Year]  Columns:  field [Country] of the country dimension table  Values: new measure)

yingyinr_2-1669620587063.png

Best Regards

Community Support Team _ Rena
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

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Shanvitha_V ,

I created a sample pbix file(see the attachment) for you, please check whether that is what you want.

1. Create a country dimension table using below formula

Countries = VALUES('Table'[Country])

yingyinr_0-1669620430493.png

yingyinr_1-1669620449726.png

2. Create a measure as below:

Measure = SUM('Table'[Amount])+0

3. Create a matrix visual as below(Rows:  field [Month Year]  Columns:  field [Country] of the country dimension table  Values: new measure)

yingyinr_2-1669620587063.png

Best Regards

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

Hi,

There is the same solve issue in the community, Please have a look :

https://community.powerbi.com/t5/Desktop/Replacing-null-values-in-matrix-visual/td-p/1019736

Appreciate your Kudos and please mark it as a solution if it helps

Mahyartf

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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