Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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`;

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;