Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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;