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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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

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

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors