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 help

Ref     YearMonth     Receipt

222      2015 -11              0

333      2015 - 12             0

231      2015 - 12             1

156      2015 - 12             1

Please can you give me a FIXED expression for:

COUNT of 'REF'

WHERE 'YearMonth' is current

and 'Receipt' = 1

11 Replies
marcus_sommer

In this case should the suggestion from tresesco work if you removed the additionally spaces within ' - '. In general it's better to use always real dates in a pure numeric format for all matching and calculations. It enabled for example to compare such YearMonth field with >= or <= which isn't possible with a string like in your sql. Often it is helpful to use a master-calendar for this: How to use - Master-Calendar and Date-Values.

- Marcus

puttemans
Specialist
Specialist

Hi Emma,

Try to execute the formula without date-parameters. If it works, you know it is the data, if not, it may be other things as well.

Count({<Receipt = {1}}>}REF)

Regards,

Johan