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
Kannan4444
Helper I
Helper I

Load and discharge in one chart

Kannan4444_0-1654697072781.png

Hey Guys, i need to the load and discharge for a "Antwerp" in a combined chart. is it possible?

2 ACCEPTED SOLUTIONS
v-cgao-msft
Community Support
Community Support

Hi @Kannan4444 ,

 

Suppose we have a table like this.

vcgaomsft_0-1655188164248.png

We can make two copies in the Power Query Editor and remove unnecessary columns to obtain two fact tables.

vcgaomsft_1-1655188347642.png

vcgaomsft_2-1655188370305.png

DimPort table.

vcgaomsft_3-1655188437029.png

Relationships.

vcgaomsft_5-1655188530241.png

vcgaomsft_6-1655188572576.png

Attached PBIX file for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

Hi @Kannan4444 ,

 

I modified the model, please check the attachment.

vcgaomsft_0-1655258647120.png

dimport table can be created like this.

Solved: Bridge table

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

6 REPLIES 6
v-cgao-msft
Community Support
Community Support

Hi @Kannan4444 ,

 

Suppose we have a table like this.

vcgaomsft_0-1655188164248.png

We can make two copies in the Power Query Editor and remove unnecessary columns to obtain two fact tables.

vcgaomsft_1-1655188347642.png

vcgaomsft_2-1655188370305.png

DimPort table.

vcgaomsft_3-1655188437029.png

Relationships.

vcgaomsft_5-1655188530241.png

vcgaomsft_6-1655188572576.png

Attached PBIX file for reference.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Kannan4444_0-1655217953358.png

am not able to select Many to one here. what am i doing wrong, please help

Hi @Kannan4444 ,

 

I modified the model, please check the attachment.

vcgaomsft_0-1655258647120.png

dimport table can be created like this.

Solved: Bridge table

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

jcalheir
Solution Supplier
Solution Supplier

Hi

 

Depends on how you build you model.

 

Can you provide a print screen of it?

Kannan4444_0-1654759637435.png

Example Antwerp: Exported 100 and Imported 80

Hi

 

You may need to transform your table. One way you can do it is to transform it into two fact tables tables, like "Load Table" and "Discharge Table" with a relation with a port table

 

something like this

jcalheir_0-1655118904415.png

 

 

Then in the clusterd chart you can provide the Port name in the X axis and provide the Load Amount and the Discharge amount in the Y Axis.

 

That should provide what you are looking for.

 

Kind regards,
José
Please mark this answer as the solution if it resolves your issue.
Appreciate your kudos! 🙂

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.

Top Solution Authors
Top Kudoed Authors