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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Apply map not working with where clause

Can some tell me why this wont work

BudgetMap:

Mapping load

ID

,num(value1,value1) as value2

From [lib:qvd/budget.qvd](qvd) where KPI ='OCF';

Load *

,num(applymap('BudgetMap',ID,null(),value1) as value2

From [lib:qvd/budget.qvd](qvd) where KPI ='Revenue';

Value 2 returns no data. I just want to add an addtional column to the revenue KPI filter that contains the value from the OCF filter.

They contain idential data but the data in the value1 field is different when filtered by KPIs.

Labels (1)
2 Replies
Anil_Babu_Samineni
MVP
MVP

Have you read applymap use case? And it allows how many parameters.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
marcus_sommer
MVP
MVP

Your expressions have a wrong syntax. Try it in this way:

BudgetMap:

Mapping load ID, value1

From [lib:qvd/budget.qvd] (qvd) where KPI ='OCF';

Load *, num(applymap('BudgetMap',ID,null()) as value2

From [lib:qvd/budget.qvd] (qvd) where KPI ='Revenue';

- Marcus