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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression error

CAT CRE_CODE REF_NO POL_NO CLA_CODE PREMUMBRO_COMMBRO_ORCAGE_COMAGE_ORCGRO_COMATOT_COMDIFFTOTAL
AGC0003990BA0014D0028258BA02HH000198HH53035007289000463800
C0005750BA0014D0028454BA0014HH0000355HH27100003735000238000
C0008186BA0014D0028343BA0005HH000233HH15195002024000126500
BA0014D0028484BA0012HH000333HH53195007549000488900
DIRBA0014D0028243BA0007HH000275HH11773001637000104800
BA0014D0028344BA95HH000112HH16400002185000136500
Total 176698 0 0 24419 0 0 0 15584 0 0
ME6297BA0014D0028454BA0014HH0000355HH27100023805750057500
54781BA0014D0028455BA0014HH0000356HH649506201330-162500
Total 33595 0 300 0 708 0 0 1200 0 0

Dear Al,

Part of my table was posted  above. and two simple expressions i wrote for BRO_ORC and AGE_ORC are sown below.

SUM({<Cat={BR},POSI={ME}>}COM_PRE*BR_COM_ORC)/100

sum({<Cat={'AG'},POSI={ME}>}COM_PRE*AG_COM_ORC+SR*AG_RS_ORC+TC*AG_TC_ORC)/100


But you can see the ME commission was calculated in both BRO_ORC and AGE_ORC columns. Instead it should be calculated only on AGE_ORC


can you find whats wrong with my two expressions.


Early reply will be highly appreciated.


Regards,

Priyantha.

2 Replies
phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

do you have POSI = ME for CAT = ME?

Also you are referring Cat with just first letter capital. Qkikview field names are case sensitive

Not applicable
Author

Dear Kunche,

Thanks for early reply.

just i change the CAT=ME as CAT=INT

but still the results are same

if i change the Cat as CAT in my expression, it make bad expression.

Please help me in this regard.

Priyantha.