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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
ashmitp869
Post Patron
Post Patron

Assist with the relationship of different tables - to get my expected results .

Hi,

 

I need help with the relationship of my tables :

ashmitp869_0-1741578891663.png

 

 

Wants to achieve the result below :

 

ashmitp869_1-1741579078990.png

The Posting Date is coming from table Explore_Contract_InvoiceLineItem

ashmitp869_2-1741579119131.png

Help me with the data model - so that I can achieve my expected results.

sample file

https://github.com/suvechha/samplepbi/blob/main/sample_info%20-%20po.pbix

 


Thanks

1 REPLY 1
rajendraongole1
Super User
Super User

Hi @ashmitp869  - can you please check the attached file.

 

Create the following relationships:

Contract[ContractId] → Explore_Contract_InvoiceLineItem[ContractId] (One-to-Many)
Contract[ContractId] → Explore_Contract_PurchaseOrder[ContractId] (One-to-Many)
Explore_Contract_PurchaseOrder[PurchaseOrderNumber] → Explore_Contract_InvoiceLineItem[PurchaseOrderNumber] (One-to-Many)
Ensure all relationships are set to 'Single' direction unless needed for special cases.

 

added these, please check. getting many to many that relationship please cross check.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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