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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Newcolator
Helper II
Helper II

Missing values in Tables

I don't think I understand how the Table visual works in Power BI. Have these three tables. Customer is the main table and the Sales and Telephone calls tables hang off it. Notice not every customer has made a phone call.

 

Newcolator_0-1724334790953.png

Here's my model

Newcolator_1-1724334891923.png

I've also created a DAX measure to sum the sales value

Sales Value = sum(Sales[Value])
 
Now I put the customer Id (from customer table) and sales measure in a table.
Newcolator_2-1724334957422.png

Looks okay. Now I add telephone call date.

 

Newcolator_3-1724335055251.png

You can see it's giving me every combination of telephone date and customer. So I updated the model to make the customer to telephone call table link work both ways.

 

Newcolator_4-1724335206036.png

Now I get this

Newcolator_5-1724335237321.png

Looks okay, but I'm missing the customers that didn't make calls. So I change the table to show items with no data. And I get...

Newcolator_6-1724335291487.png

So the non-calling customers are now showing, but now the DAX measure is not showing their sales value, but the total is the sum of the whole sales table. Is there a way to get the DAX measure to show on every row? If I remove call date from the table, the DAX measures come back.

Newcolator_7-1724335555501.png

 

Is there something I'm not understanding? Should I only use columns from one table in a table visualisation? Do I need to redesign my model? 

 

Anyone got any ideas?

 

Thanks.

 

1 ACCEPTED SOLUTION

I've observed that the logic functions correctly when the relationship between the Telephone Calls and Customer tables is one-to-one. Since there are no duplicate customers in the Telephone Calls table, Power BI assumes that each customer makes only one call, leading to the desired result.

MaheshkumarSuma_0-1724337364149.png

However, when there is a cardinality between the tables—specifically, since Customer ID serves as the primary key connecting both the Telephone Calls and Sales tables—if you include fields from all three tables in a table visual, Power BI requires that all customer IDs be present in each table.

One potential solution is to merge the tables using a left join with the Customer table in Power Query, then group by Customer ID and set the aggregation to SUM(Sales).

View solution in original post

3 REPLIES 3
Newcolator
Helper II
Helper II

Very helpful. Thanks both.

v-xianjtan-msft
Community Support
Community Support

Hi @Newcolator 

 

Agree with MaheshkumarSuma's solution.

Here's a little something I'd like to add:

If you want to keep the relationship between the “Customers” table and the “Telephone Calls” table in your model as a one-to-many bi-directional relationship, you can create a measure to control for customers who have not made a call to show a blank in the call date column. The DAX as follows:

Call Date Display = 
IF(
    ISBLANK(SELECTEDVALUE('Telephone calls'[Call date])),
    BLANK(),
    SELECTEDVALUE('Telephone calls'[Call date])
)

vxianjtanmsft_0-1724380045161.png

However, this solution only works for one call date per customer. So it is necessary to clarify the correspondence between sales value and call date, it is suggested to consider establishing a relationship between the "Telephone Calls" table and the "Sales" table through the date column in the model.

 

Best Regards,
Jarvis Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

I've observed that the logic functions correctly when the relationship between the Telephone Calls and Customer tables is one-to-one. Since there are no duplicate customers in the Telephone Calls table, Power BI assumes that each customer makes only one call, leading to the desired result.

MaheshkumarSuma_0-1724337364149.png

However, when there is a cardinality between the tables—specifically, since Customer ID serves as the primary key connecting both the Telephone Calls and Sales tables—if you include fields from all three tables in a table visual, Power BI requires that all customer IDs be present in each table.

One potential solution is to merge the tables using a left join with the Customer table in Power Query, then group by Customer ID and set the aggregation to SUM(Sales).

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.