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
Nithinbob24
Frequent Visitor

not able to fill the blank spaces in my matrix visual

Nithinbob24_0-1731902519246.png

 

my table columns are capamt, monthname, paymentmonth ,

i created a matrix visual of the uploaded image i.e in Rows field - monthname ,columns field - paymentmonth and for values i gave an dax expression
capamtmes = IF(ISBLANK(SUM(Query3[capamt])),0.0,SUM(Query3[capamt])) as the value but the blank spaces are not replced with 0.0 ,
i tried COALESCE(SUM(Query3[capamt]),0.0) but this is also fill the blank spaces ,any suggestions please let me know

2 ACCEPTED SOLUTIONS

Hi @Nithinbob24 
you can use a measure like :

test = sum('Main table'[capamt])+0
Ritaf1983_0-1731905443098.png

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

Did you download the PBIX?
And used the same model with 2 months's tables?

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

7 REPLIES 7
Kedar_Pande
Super User
Super User

@Nithinbob24 

Adjusted measure:

capamtmes = 
IF(
HASONEVALUE(Query3[monthname]) && HASONEVALUE(Query3[paymentmonth]),
COALESCE(SUM(Query3[capamt]), 0.0),
0.0
)

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

Ritaf1983
Super User
Super User

Hi @Nithinbob24 

Please provide workable sample data . It is hard to figure out what you want to achieve from the description alone.  

https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

no i cant provide

 

Hi @Nithinbob24 
you can use a measure like :

test = sum('Main table'[capamt])+0
Ritaf1983_0-1731905443098.png

The pbix is attached

If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

i tried this , but it did not work , thank you though for the reply

 

Did you download the PBIX?
And used the same model with 2 months's tables?

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

earlier i only used the measure, i did not see the model , it is working
Thank you so much for the help

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! Prices go up Feb. 11th.

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.