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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
mofqlikproject
Contributor
Contributor

Less than equal to Selected year and month

i need to show data until selected year and Month

have Joining date till the selected year moth need to know number of employees

tried build two variables

1.vYear ==passing selected year

2. vMonth =passing selected Month

3. concatenation both variables vyearmonth =vYear &vMonth

have column year(joinng date)&month(joining date)  created this column in database

201901

201902

201903

.

.

.

used below expression but not working

=Count(distinct{<yearmonth=  {"<=$(vyearmonth )"}>} empno)

need urgent

it s beheaving strange

14 Replies
mofqlikproject
Contributor
Contributor
Author

it  's  not selected date

i need to design two filters one year and one Month

based on selection we need number of employess

mofqlikproject
Contributor
Contributor
Author

it is not working <= when i concatenate two variables into third variable

if i use year alone it is working

any help

mofqlikproject
Contributor
Contributor
Author

Hi dilip,

i use the expression you suggested but is giving data for selected year and month

<= is not working

agigliotti
MVP
MVP

I think you should use the below expression:

Count( {< year =, month =, yearmonth =  {"<=$(=vYearMonth )"} >} distinct empno )


I hope it will fix your problem.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
mofqlikproject
Contributor
Contributor
Author

Than you it is working