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: 
marcorizzo
Contributor III
Contributor III

error in expression

Hi.

I'm trying to write an expression like this:

=count({$<year(WEB_datainserimento)={year(Today())})>}IDWEB)

but it doesn't work.

I'm not finding the mistake.

Any suggestion ?

Thanks

Marco

1 Solution

Accepted Solutions
vishsaggi
Champion III
Champion III

Hi Marco,

If this field stores the dates, why dont you create an extra field in your load script and then use that field in the expression.

Like try this.

LOAD *,

         Year(WEB_datainserimento) As WEBYear

FROM <YourTableName>;

Expression:

=count({$< WEBYear = { "=year(Today())" } >} IDWEB)


Thanks,

V.

View solution in original post

2 Replies
sunny_talwar

May be try this:

=Count({$<WEB_datainserimento ={"=Year(WEB_datainserimento) = Year(Today())"}>} IDWEB)

vishsaggi
Champion III
Champion III

Hi Marco,

If this field stores the dates, why dont you create an extra field in your load script and then use that field in the expression.

Like try this.

LOAD *,

         Year(WEB_datainserimento) As WEBYear

FROM <YourTableName>;

Expression:

=count({$< WEBYear = { "=year(Today())" } >} IDWEB)


Thanks,

V.