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
afbraga66
Helper III
Helper III

Unexpected result in relationship between tables

Hi,

 

I have 2 tables that relate in the form below. F_PRODUCTION_ORDER (1) -> (*) F_PRODUCTION_DEFECT

afbraga66_3-1634907530515.png

 

 

The image below contains that only from table 1 - F_Production_Order. Notice how it has 3 Orden de Produccion.

afbraga66_0-1634907401173.png

 

Once I had a field from table 2 - F_Production_Defect, Orden 79440661867 disappears. This is because that record does not exist on table 2, which is normal.

afbraga66_1-1634907401727.png

 

If I set "Show Items with no data" it appears but with no value for Producido (m3) measure.

afbraga66_2-1634907401720.png

 

The expected result should have with the Producido (m3) value and in my opinion without the need to show items with no data.

How am I supposed to get that result?

I am getting wrong data due to this behaviour.


Link  to test example: https://we.tl/t-YtkMRwjXw8

 

Thank you,

Best regards,

André

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @afbraga66 ,

By my test, if the Producido (m3) measure is composed of column in table 1 - F_Production_Order, it has no value in the begining, or if the Producido (m3) measure is composed of column in table 2 - F_Production_Defect, it has value whatever, I wander what the  Producido (m3) measure is defined, can you show me more details?

vkalyjmsft_0-1635235988875.png

 

 

Best Regards,

Community Support Team_kalyj

 

Hello @v-yanjiang-msft 

 

I have re-added the file which has expired : https://we.tl/t-znEQzpVElh

The issue is that is feels like that when Power BI combines fields from two related tables it does an intersection/inner join of the data.

 

Thank you.

Best regards,

André

amitchandak
Super User
Super User

@afbraga66 , add + 0 to the measure Producido (m3)

 

example

Producido (m3) New  = [Producido (m3)] +0

 

or , if this is  column

Producido (m3) new = sum(Table[Producido (m3)]) +0

Hi @amitchandak 

 

I have tried that, but now not sure it works.

It now shows 0 values for all combinations I believe (makes no sense) and still hides the value for the Orden. The total is correct, but the individual value of the orden is nowhere to be seen.

afbraga66_0-1634936657019.png

Thank you.

 

Best regards,

André

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.