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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
PGAT
Helper III
Helper III

Combining data from two columns (origin and destination) into graph

Hi, just started in this space.  I've been a fan of pivot, power query, power pivot.  In my limited experience, i haven't been able to work around this problem.    

 

I have a huge table that tracks the number of shipments that went from one origin to one destination.  In order to track the number of shipments to, say, SYD,  I have to pivot first by Origin to get total number of shipments to SYD, and then i do the same pivot for Destination to get the number, and then sum up. 

 

With powerBI, i hope i do not have to pivot out two tables to sum up.  Please see my sample table in the link below

Sample table

 

I will be grateful if anyone can help me with this. 

 

 

Sincerely,

Patrick

2 REPLIES 2
v-xicai
Community Support
Community Support

Hi PGAT,

 

You can create Matrix visual to meet your demand showing picture below.

 

4.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

You can go through the link to learn more: https://docs.microsoft.com/en-us/power-bi/visuals/desktop-matrix-visual

 

Here is my test pbix file link: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EcS29zVrJxBJsXPKEs...

 

Best Regards,

Amy

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Amy, thanks.  I realised I have made a mistake in the outcome of my sample table.  If possible, can you take a look at it again?  https://1drv.ms/x/s!ApSB4boI7YlPiEPRH25yRJa1Fyw_

 

My table is quite huge, and so where possible, i hope to be able to visualise the data in graphs as well.  If matrix is possible for the updated outcome in the link above, i will appreciate your advice. 

 

Many thanks!

 

Sincerely,

PGAT

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors