Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216485

Circular Data Reference

$
0
0

Hi there, hope you can help me out with this issue.

 

  • The DB looks as follows:
  • tblCustomer (ID, Name, Location)
  • tblProject (ID, Name, CustomerName)
    • Linked to Customer on Name
  • tblIResource (ID, Name, DayCost, HourCost)
    • Hourcost is calculated by dividing Daycost by 8
  • tblTimesheet (ID, ProjectID, ResourceName, Hours, Cost, Month)
    • Linked to Project on ProjectID
    • Linked to Resource on Name
    • TimesheetCost is calculated by multiplying Hours by tblResource[Cost]
  • tblInvoice (ID, ProjectID, Month, Cost, Sales)
    • Linked to Project on ProjectID
    • ProjectSales is entered manually
    • ProjectCost is calculated by the sum of all Timesheet rows that match the ProjectID and Month

 

Now what I would like to do is create 2 new columns in tblInvoice. One will show me the difference in ProjectSales and ProjectCost, my profit or loss so to speak. The 2nd one needs to show the relative profit or loss margin in %.

 

However using just a simple Column1 - Column2 does not work. I've tried several option using Calculate() but no success. I keep receiving Circular Dependancy errors. Can anyone help me out?


Viewing all articles
Browse latest Browse all 216485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>