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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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

Labels (1)
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)