Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
QSense
Creator II
Creator II

count for current year

Hi everyone ,

I have dimension in order to show only 2012 values (=if(right(VARDIYARAP_ACILISTARIHIAYYIL_,4)=2012,VARDIYARAP_ACILISTARIHIAYYIL_))

I want count ID for 2012 values based on dimension above

1 Solution

Accepted Solutions
krishnacbe
Partner - Specialist III
Partner - Specialist III

Try this

= count(if(right(VARDIYARAP_ACILISTARIHIAYYIL_,4)=2012,ID))

View solution in original post

6 Replies
krishnacbe
Partner - Specialist III
Partner - Specialist III

Hi

Hope below expression will help you

= count(if(right(VARDIYARAP_ACILISTARIHIAYYIL_,4)=2012,VARDIYARAP_ACILISTARIHIAYYIL_))

Regards

Krishna S

QSense
Creator II
Creator II
Author

What do you count here There is no ID statement

krishnacbe
Partner - Specialist III
Partner - Specialist III

Try this

= count(if(right(VARDIYARAP_ACILISTARIHIAYYIL_,4)=2012,ID))

Not applicable

Since you already filtered out the 2012 dates in your dimension, I don't think you have to put another filter in your expression.

Doesn't just =Count(ID) give you correct result?

QSense
Creator II
Creator II
Author

It is a pie chart and there is no date dimension there

Not applicable

Then how about using 'set' in the expression

=Count({<right(VARDIYARAP_ACILISTARIHIAYYIL_,4)={'2012'}>} ID)