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: 
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.

2 Replies
Anil_Babu_Samineni

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

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