cancel
Showing results for 
Search instead for 
Did you mean: 
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
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!

Top Solution Authors