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
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
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.