cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tarekhassan90 Frequent Visitor
Frequent Visitor

Profit Report

Hi there

 

I need to build a profit report as I have 3 tables as the following:

     A- Table 1 contains:

          1- Revenue amount

          2- Revenue Date

          3- Project ID

          4 - Project Name

  

   B- Table 2 Contains:

          1- Project id 

          2- Cost amount 

          3- Cost Date

 

    C- Table 3 Contains:

         1- Project Id 

         2- Expense amount 

         3- Expense Date

 

my objective is to calculate the profit per project based on the time dimension of each table. The issue here is I cant build a relationship based on project ID and Time of each table. 

 

Measures:

Actual Cost =  Cost amount + Expense amount

Profit = Actual Cost - Revenue amount

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Profit Report

Hi @tarekhassan90 ,

 

To create another new calculated table as a bridge table, and create relationship between your fact tables.

Project =
DISTINCT (
    UNION (
        VALUES ( table1[projectid] ),
        VALUES ( table2[projectid] ),
        VALUES ( table3[projectid] )
    )
)
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Profit Report

Hi @tarekhassan90 

I'd recommend to create a Project table as well. That will be connected by the Project ID and the Date table just by the Date columns.

Recommended reading: https://exceleratorbi.com.au/the-optimal-shape-for-power-pivot-data/

 

If you liked my solution, please give it a thumbs up. An if I did answer your question, please mark my post as a solution. Thanks!

Proud to be a Datanaut!

Imke Feldmann

How to integrate M-code into your solution -- Check out more PBI- learning resources here -- Performance Tipps for M-queries




tarekhassan90 Frequent Visitor
Frequent Visitor

Re: Profit Report

Thanks @ImkeF  for your response.

 

could you please clarify more 

Super User
Super User

Re: Profit Report

Hi @tarekhassan90 ,

what exactly should be clarified?

If you liked my solution, please give it a thumbs up. An if I did answer your question, please mark my post as a solution. Thanks!

Proud to be a Datanaut!

Imke Feldmann

How to integrate M-code into your solution -- Check out more PBI- learning resources here -- Performance Tipps for M-queries




Highlighted
Community Support Team
Community Support Team

Re: Profit Report

Hi @tarekhassan90 ,

 

To create another new calculated table as a bridge table, and create relationship between your fact tables.

Project =
DISTINCT (
    UNION (
        VALUES ( table1[projectid] ),
        VALUES ( table2[projectid] ),
        VALUES ( table3[projectid] )
    )
)
Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

Helpful resources

Announcements
New Topics Started Badges Coming

New Topics Started Badges Coming

We're releasing new versions of the badge that everyone's talking about. ;) Check your inbox for notifications.

MBAS 2020

Save the new date (and location)!

Our business applications community is growing—so we needed a different venue, resulting in a new date and location. See you there!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors (Last 30 Days)