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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Operation in where condition expression

I want to write in a chart this expression:

only({< [CASH-COSTS] < {'7'} >} NUMF)

I receive error for [CASH-COST] and <

8 Replies
MayilVahanan

HI

Try like this

only({< [CASH-COSTS] = {"<7"} >} NUMF)

Hope that helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

[CASH-COSTS] gives error

MayilVahanan

HI

Is there  any Cash-Costs field ?

Please check it

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

"cash" is a field and "costs" is another field

cash-costs is the subtraction

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

You cant do that in a set expression. The LHS must be a field name. Try this instead:

only(If (CASH - COSTS] < 7, NUMF))

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
MayilVahanan

HI

Try like this

only(If (CASH - COSTS < 7, NUMF))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Hi,

Try:

only(If ((CASH - COSTS) < 7, NUMF))

Not applicable
Author

but then i have to do a division...

I explain: when the subtraction CASH - COSTS is less of 7, count NUMF and divide this count NUMF for the total count of NUMF...

=(Count({<[CASH-COST] < {'7'}>} NUMF))/(Count(NUMF))

but this not work!