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
415149
New Member

Matrix fill cells for items with no record for a certain date

Hello,

 

I'm trying to show month to month changes in a matrix visual. Some items are new (didn't exist and don't have records for previous months) and some are old (no longer exist and don't have records in the last month). Below is an example data table.

BE7835CA-3E15-4A3C-8772-68FD799C5C45.jpeg


And the result matrix I'm getting.

96BCA3C5-CBD6-4198-9F5F-768067214DED.jpeg

Although the totals seem to be correct, the item a102 has blank cells for 31/01/2022. Similarly, item a103 has blank cells for 31/12/2021. Is there a way to fill those cells with the correct values? 

This is the expected output:

56E3BF6F-7FA2-40D7-A86F-908BC91C40DC.jpeg

 

Thanks

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @415149,

Have you tried to add +0 to your formula to replace the blank result with zero?

If these do not work, it means your records not include in your table, you may need to manually create an unconnected table with all date value and use it on column fields.
After this step, you can write a formula to look up row table records based on the current category and date value and replace the not existing value with zero.

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.