Skip to main content
Announcements
Do More with Qlik - Qlik Cloud Analytics Recap and Getting Started, June 19: REGISTER
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.