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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ADSL
Post Prodigy
Post Prodigy

Fixed Matrix Layout when data unavailable

Hi BI Community Team,

 

I have a sales data and build the matrix table to see the performance for full year 2024 & 2025. However, matrix table layout will change when choose the year because data is not full yet for 2025 as the screenshot below.

 

Any suggestion/advise how to fixed the layout even data is unavailble? I mean header will be showing Jan | Feb | -- | Dec, and value is zero (0) if unavailable of data.

 

2025-01-05_13-06-47.jpg

Expectation result:

 

Result.jpg

 

Thanks and Regards,

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file whether it suits your requirment.

 

Show items with no data in Power BI - Power BI | Microsoft Learn

 

Jihwan_Kim_1-1736061784633.png

 

 

Jihwan_Kim_0-1736061741061.png

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

5 REPLIES 5
ADSL
Post Prodigy
Post Prodigy

Hi All,

 

Thank you for your time and feedback.

 

Best Regards,

Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file whether it suits your requirment.

 

Show items with no data in Power BI - Power BI | Microsoft Learn

 

Jihwan_Kim_1-1736061784633.png

 

 

Jihwan_Kim_0-1736061741061.png

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.
DataNinja777
Super User
Super User

Hi @ADSL ,

 

Is there any reason to duplicate the matrix table into separate tables for 2024 and 2025? Why not combine them into a single matrix table to also resolve the issue of missing data?

 

Best regards,

 

 

 

Hi @DataNinja777 ,

 

We're tracking by year and selection but just have issue of layout that is changing when select.

 

2025-01-05_13-06-47.jpg

I don't have any solution to fixed this layout as the expection result below even year selection is choose.

 

Result.jpg

Hi @ADSL ,

 

To prevent Power BI matrix visuals from hiding future months with zero or null values, ensure your Calendar table covers the entire desired period, such as all of 2025. Use a measure like:

Sales with Zeros = IF(ISBLANK(SUM(Sales[Amount])), 0, SUM(Sales[Amount]))

This replaces blanks with zero, ensuring months with no data remain visible. Additionally, enable “Show items with no data” by right-clicking the relevant field in the Fields pane.

For a more comprehensive solution, use CROSSJOIN to generate all combinations of months and categories, or create a measure to display zeros for future dates:

Future Sales = IF(MAX('Calendar'[Date]) > TODAY(), 0, [Sales with Zeros])

These steps ensure your matrix visual includes future periods, even if they have no data.

 

Best regards,

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.