I have three tables with the below columns.
I am trying to filter and add all the purchases for the day that are allocated to food cost in the Ref Stock Items Table.
I have the following formula
SUM(SELECT(Line Items[Cost],AND([Banking Date]=Today(),[Item].[ITEM].[Type]=“Food Cost”)))
But I get the following error
Column ITEM in expression ‘[Item].[ITEM].[Type]’ does not contain a reference.
Can someone help me with the correct dereference?
Tables and their Row
- Banking for the Day
_RowNumber Number
Timestamp DateTime
Banking ID Text
Credit Card ID Text
Banking Date Date
TOTAL TURNOVER Price
Less credit cards Price
Deliveries Price
Sub Total Price
Less cash food cost Price
Banking
- Line Items
_RowNumber Number
Timestamp DateTime
Invoice No Text
Date Date
Supplier Ref
Item Ref
Quantity Number
Price per Unit Price
Cost Price
- Ref Stock Items
ITEM ID Text
ITEM Text
Supplier Text
Туре Text
Price Text
Related Line Items List