Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
mluz
Partner - Contributor II
Partner - Contributor II

Map_id not found

I tried Applymap but getting an error:   map_id not found

Can anyone help me on this one. Thanks in Advance

UnitCost_Map:
LOAD ProductID,UnitCost;
SQL SELECT *
FROM Products;

//****************ORDERS DETAILS TABLE******************//
OrderDetails:

LOAD Discount,
LineNo,
OrderID,
ProductID,
UnitPrice,
ProductID AS ContadorRegistrosIDProducto,
autonumber(OrderID &'-'& LineNo) as OrderLineKey,
Quantity,
UnitPrice *Quantity*(1-Discount)AS LineSalesAmount,
applymap('UnitCost_Map', ProductID, '0')* Quantity AS CostOfGoodsSold;

SQL SELECT *
FROM `Order Details`;

Labels (1)
1 Solution

Accepted Solutions
Lisa_P
Employee
Employee

You need to put the Mapping prefix before the load statement for the mapping table.

UnitCost_Map:
Mapping LOAD ProductID,UnitCost;
SQL SELECT *
FROM Products;

View solution in original post

1 Reply
Lisa_P
Employee
Employee

You need to put the Mapping prefix before the load statement for the mapping table.

UnitCost_Map:
Mapping LOAD ProductID,UnitCost;
SQL SELECT *
FROM Products;