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
Karthik12
Helper V
Helper V

Matrix table with development with data from 2 different tables

Hello Team,

I have to develop one matrix table with Customer - Plan - Actual

Plan comes from 1 table, actual production comes from table 2 and customer is available in both table as like below

Table 1 :

Karthik12_1-1670506234158.png

 

Table 2 : 

 

Karthik12_0-1670506205490.png

 

you can see plan is for one customer and actual producted qty for another customer.

 

If I put a matrix table I am expecting like below

Karthik12_4-1670506965757.png

 

But in Power Bi, it taking only actuals and not showing BPCL as 0.

Karthik12_3-1670506924017.png

Karthik12_0-1670507116187.png

 

am applying filter of date from both table 1 and 2. So, it showing like this.

 

May I know , how can show all values ? I have tried "tables with no value" option but didn't work out.

 

 

1 ACCEPTED SOLUTION
sturlaws
Resident Rockstar
Resident Rockstar

Hi, @Karthik12,

 

you need to work a little with your data model:

 

1. create a customer table, with all customers from both of your table. This you can do with power query(transform data)

2. create a date table, this you can do with DAX, using this code:

Dates = GENERATESERIES(date(2020,1,1),date(2025,12,31),1)

sturlaws_0-1670540133328.png

 

Then create relationships between your tables:

sturlaws_1-1670540309249.png

 



And now use customer from the customer-table and date from the dates-table on axis and slicers.

 

I would recommend reading a little about modelling, either google power bi modelling or startt out with this article:
Power BI Data Modeling | Step by Step Guide with Examples (wallstreetmojo.com)

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

 

  

View solution in original post

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi, @Karthik12,

 

you need to work a little with your data model:

 

1. create a customer table, with all customers from both of your table. This you can do with power query(transform data)

2. create a date table, this you can do with DAX, using this code:

Dates = GENERATESERIES(date(2020,1,1),date(2025,12,31),1)

sturlaws_0-1670540133328.png

 

Then create relationships between your tables:

sturlaws_1-1670540309249.png

 



And now use customer from the customer-table and date from the dates-table on axis and slicers.

 

I would recommend reading a little about modelling, either google power bi modelling or startt out with this article:
Power BI Data Modeling | Step by Step Guide with Examples (wallstreetmojo.com)

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

 

  

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.