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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kwl1234
Partner - Contributor III
Partner - Contributor III

Dynamic change expression measure

Table 1:

kwl1234_0-1614927718998.png

Table 2:

kwl1234_1-1614927888083.png

Here my existing formula to calculate the total value based on table 1,

//company A,B,D >12MTHS

Sum({Table 2.Company-={'C'}
[> 24 MTHS]+[13-24 MTHS])

//company C >24MTHS
+Sum({<Table 2.Company={'C'},Table 2.Company -={'A', 'B', 'D'}>}
[> 24 MTHS])

 

Since table 1 may change, I want to change the measure dynamically, e.g if table 1 A aged ='>24MTHS', Change the formula measure to sum( [> 24 MTHS]).

Should I join table 1 and table 2 and then using if case to determine total MTHS value?

Is it a better way to calculate the total MTHS value based on table 1 column B?

Please help😥

 

1 Reply
kwl1234
Partner - Contributor III
Partner - Contributor III
Author

i seems found the solution, i use

Pick(WildMatch(

to solve this problem