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: 
Not applicable

Expression Issue

Hi,

I was wondering why the condition in this expression for a measure is not valid?

count({<left(adjmt_id ,2) = '05'>} adjmt_id)

Thanks,

Ben

2 Replies
m_woolf
Master II
Master II

You can use IF:

count(if(left(adjmt_id ,2) = '05', adjmt_id))

Or you can create a new field in script:

left(adjmt_id ,2) as NewField;


Then:

count({<NewField = {'05'}>} adjmt_id)

Anonymous
Not applicable
Author

I think you can NOT Evaluate or do functions ON THE LEFTSIDE of Modifiers ...

But anyway

check with this

count({<left(adjmt_id ,2) = {"05"}>} adjmt_id)

or

count({<adjmt_id={"=left(adjmt_id,2)=05"}> adjmt_id)