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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
HAM
Frequent Visitor

Build relationships between 3 tables to create P&L statement

I am new to power bi and my first assignment is to create a P&L statement. I have done numerous courses but didn't study anything like this. My first milestone is to create relationships but i can't figure out how. Any help would be much appreciatedss1.png

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

Hi @HAM 

 

For your question about creating relationships for tables, here's what I can do for you:

 

Autodetect during load, when data is loaded, Power BI Desktop automatically detects, finds and creates relationships for your tables.

 

You can also choose to create relationships manually. At least one table in the creation relationship must have a unique value.

vnuocmsft_0-1704352043857.png

 

Alternatively, in the “Model view” diagram layouts, you can drag and drop a column from one table to a column in another table to create a relationship.

vnuocmsft_1-1704352081872.png

 

And you can edit these relationships. Right-click on the relationship line and select "Properties".

vnuocmsft_2-1704352091638.png

 

Edit the relationships of your tables.

vnuocmsft_3-1704352116566.png

 

You can view the link below for more details:

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

 

Regards,

Nono Chen

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

 

 

View solution in original post

2 REPLIES 2
v-nuoc-msft
Community Support
Community Support

Hi @HAM 

 

For your question about creating relationships for tables, here's what I can do for you:

 

Autodetect during load, when data is loaded, Power BI Desktop automatically detects, finds and creates relationships for your tables.

 

You can also choose to create relationships manually. At least one table in the creation relationship must have a unique value.

vnuocmsft_0-1704352043857.png

 

Alternatively, in the “Model view” diagram layouts, you can drag and drop a column from one table to a column in another table to create a relationship.

vnuocmsft_1-1704352081872.png

 

And you can edit these relationships. Right-click on the relationship line and select "Properties".

vnuocmsft_2-1704352091638.png

 

Edit the relationships of your tables.

vnuocmsft_3-1704352116566.png

 

You can view the link below for more details:

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

 

Regards,

Nono Chen

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

 

 

PijushRoy
Super User
Super User

Hi @HAM 

In the given details, I am not sure what is the issue you are facing
In the given screenshot, it is not clear which fields are connected in a relationship.
Please share sample data format and more images for the relationship.

For general,
Delete the auto-created relationship.
If you have GL dim table (general ledger are unique field), then use the GL field in relation with the Transection table and Account Balance table.

Better if you can create a sample pbix file and share the Google Drive link (please remove sensitive information)
https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Thanks 
Pijush


 

 




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.