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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MrMP
Helper III
Helper III

How to setup data for Force Directed graph

Hello Everyone,

 

Ive got interesting problem to solve and I would need help from anyone. I am aiming to use Force directed graph but the data structure is a problem.

I have dataset as following:

 

Order NumberProduct NameSales Amount
1234Product1100
1234Product2200
1234Product3300
3333Product4400

4444

Product1500

 

And this is data structure I need: (table below is all possible combinations of Product names and their sales if those two products belong to the same order)

 

Product NameProduct NameSales
Product1Product2300 (200+100)
Product1Product3400 (300+100)
Product1Product40 (they dont have same Order number)
Product1Product50 (they dont have same Order number)

 

Thank you in advance!

1 ACCEPTED SOLUTION
v-eachen-msft
Community Support
Community Support

Hi @MrMP ,

 

You could use merge queries feature to do it in query editor.

1-1.PNG

Here is my test file for your reference.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

View solution in original post

1 REPLY 1
v-eachen-msft
Community Support
Community Support

Hi @MrMP ,

 

You could use merge queries feature to do it in query editor.

1-1.PNG

Here is my test file for your reference.

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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