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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Sdhn420
Helper IV
Helper IV

Data Model and Table Help!

This is what the output should be:

 

I need to display all the sales orders which have been invoiced along with their order qty, sales qty, sales invoice value and product.

 

Sales OrderProduct DescriptionPO NumberSold-to ptOrder qtyMaterialCustomer NameItemInvoice QtyNet Value
222XYZP771116457YYY106466.24
222ABCP771236456YYY206470.98

 

But I am getting aroud 20 rows for just for the first record. 

 

This is my data model - 

 

Data Model.PNG

 

I have tried to merge and group the tables as well but always get duplicate records in the table. Even tried to create unique keys by combining colums (Sales document no. and material code). 

 

Any help in this matter would be highly appreciated. I am stuck with this for 1 week now.

3 REPLIES 3
PaulDBrown
Community Champion
Community Champion

@Sdhn420 

 

OK, so I've given this a shot, though I cannot really be sure if the outcome is what you expect.

The first thing to point out is that the problems are probably caused by the many-to-many relationships you have between your :
- Delv Track and Sales Order table

- Customer Master and Sales order table.

 

With the data you sent me, I have set the model up like this:

Model.JPG

 

And this is the table based on your example:

Result.JPG

I've included the PBIX file





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






PaulDBrown
Community Champion
Community Champion

@Sdhn420 

any chance you can share a sample PBIX file (or dataset) to play with?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.