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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
PeraZo
Helper I
Helper I

How to get value for Matrix from different table with blank values

Hello Power BI Community!

 

I am trying to create Matrix Table using value from different tables.

 

Below Picture is the Sales Record.

SalesRecord.png

You can see that there are no sales for Product B in May.

Also there are no sales for all Products for June.

So these numbers should be blank in matrix.

 

Below is what I want to do.

Matrix.png

 

When I tried this by straight forward just using this Sales Record Table, 

I dont see numbers for June.

Matrixoutput.png

 

Also this does not work when I have more transaction table, like Inventory Table etc.

 

So I made Product×Period (Cross Joined) master table and add columns to get sales number from the sales record.

※This way I can get numbers from other different tables like Inventory etc.

Addcolumn.png

 

But I dont know the DAX or Query to accomplish this.

Is there any way I can do this??

 

Please help!!

 

 

 

And thank you very much for looking through and helping in advance.

1 ACCEPTED SOLUTION
miTutorials
Super User
Super User

You will have to create a Calendar table and use the Month field from the Calendar table.

 

If you don't know how to create the calendar table, please see the below tutorial.

 

How to Create Calendar Table using DAX in PowerBI | MI Tutorials - YouTube

 

After that you need to click on the month field dropdown and choose 'Show items with no data'

 

miTutorials_0-1698754374876.png

 

View solution in original post

2 REPLIES 2
PeraZo
Helper I
Helper I

Thank you. This is good solution I did not know there is function like this

miTutorials
Super User
Super User

You will have to create a Calendar table and use the Month field from the Calendar table.

 

If you don't know how to create the calendar table, please see the below tutorial.

 

How to Create Calendar Table using DAX in PowerBI | MI Tutorials - YouTube

 

After that you need to click on the month field dropdown and choose 'Show items with no data'

 

miTutorials_0-1698754374876.png

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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