Hi @Jesper L�rkedal,
Goto the Help and look for Data Lookup. I think it will work for your usecase.
It allows you to get a sum of a numerical column in another table based on filtering criteria.
So - in your case from another table - this formula should work:
=Cost Source Master Data:Amount[Cost Pool="Internal Labor" AND Is Labor="Yes"]
If you want it to be dynamic based on the row values of another table, that also works:
Lets say you have a table with following columns:
Labor Cost Pool,Cost Center,Amt
Internal Labor,8000,500
Internal Labor,8001,600
Internal Labor,8002,700
External Labor,8001,300
External Labor,8002,200
External Labor,8003,100
And you want to calculate the percent of total Internal / External Labor Cost, you can have a formula to lookup only the total Internal Labor or External Labor by using the formula:
=Cost Source Master Data:Amount[Cost Pool=Labor Cost Pool AND Is Labor="Yes"]
this way the Cost Pool is matched with the value of the Labor Cost Pool column in the current row.
Let me know if you have questions.
Regards,
Sanjay Valiyaveettil
Including the help details here:
The syntax for external data lookup is:
={table}:{column1}[column2 selector]
This means return the value in column1 of the named table, where column2 matches the selector.
Note: Unlike the syntax for functions, the brackets in this row-select syntax must be included if the optional column selector is used.
The selector can be any of the following:
operator match (where match can be a string or a column reference and the operator can be = (equal to) or != (not equal to))
IN ( string [ ,...n ] )
NOT IN ( string [ ,...n ] ) (Note: there is a space between NOT and IN)
If more than one value matches the selector, the reference returns the sum of the matching values.
If the optional column2selector is not specified, the reference returns the sum of column1.