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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Oros
Post Prodigy
Post Prodigy

Relate tables

Hello,

 

I have 3 tables (DOLLAR and QTY tables are related with the third table PRODUCT).

 

The DOLLAR and QTY columns are correct, but as soon as I bring in the CUSTOMER column the QTY for each customer always shows the TOTAL QTY for all customers.  How do I relate the CUSTOMER from the 2 tables?  Thanks.

 

Here is the sample pbix:

SAMPLE pbix

 

Here are the screenshots:

(this is correct)

Oros_0-1704146912278.png

 

(when CUSTOMER is added, the  QTY is NOT correct)

highlighted in green is correct

Oros_1-1704147110657.png

(QTY duplicated per line)

Oros_2-1704147269281.png

 

 

 

2 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

Hi,

Create a single column table of all unique customers.  Create a Many to One relationship from the Qty and Dollar Table to the Customer Table.  To your visual, drag Customer from the Customer Table.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

ThxAlot
Super User
Super User

ThxAlot_0-1704173670536.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



View solution in original post

10 REPLIES 10
ThxAlot
Super User
Super User

ThxAlot_0-1704173670536.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Thanks @ThxAlot ,

 

This work as well!

Ashish_Mathur
Super User
Super User

Hi,

Create a single column table of all unique customers.  Create a Many to One relationship from the Qty and Dollar Table to the Customer Table.  To your visual, drag Customer from the Customer Table.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks @Ashish_Mathur ,

 

This works!

aj1973
Community Champion
Community Champion

Hi @Oros 

Change the relationship to both

aj1973_0-1704152391391.pngaj1973_1-1704152475424.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Hi @aj1973 ,

 

Thank you for your quick reply.  I changed the relationship as you indicated.  But it looks like only the total is correct. COuld it be because the CUSTOMER from the DOLLAR and QTY tables must also be related?  Thanks again.

 

The QTY lines are duplicated and do not equal the total qty of 2,165.38.

Oros_0-1704153372972.png

The matrix table is also not correct because of duplicated QTY.

Oros_1-1704153518461.png

 

In Excel Pivot Table, this are the correct numbers.

Oros_3-1704153735801.png

 

 

 

 

 

aj1973
Community Champion
Community Champion

@Oros New Update:

 

Use CUSTOMER from the DOLLAR Table instead

 

aj1973_0-1704154602567.png

 

And Use Product from the Dollar Table

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Hello @aj1973 ,

 

Unfortunately, the result is still incorrect.  The QTY column still shows duplicate values.  How do we avoid the duplicate values and show the correct values instead?  Thanks.

Oros_0-1704155786998.png

 

aj1973
Community Champion
Community Champion

aj1973_0-1704155992865.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Hi @aj1973 ,

 

Thanks again for your reply. 

 

Unfortunately, the duplicate (incorrect) values still show up in the QTY column.

 

Oros_0-1704156283754.png

 

Oros_1-1704156317701.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors