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

Unable to filter the date dimension based on from and to dates

Hi Team,

I want to filter date dimension (derived dimension)  from vFromDate and vToDate.

=if([Onboarding Date_F]>='$(=vFrom)', if( [Onboarding Date_F]<='$(=vTo)'),([Onboarding Date_F]),'FE').

Here the problem is it is working for From Date. It's not working for ToDate. I have cross checked variable.

I am getting proper variable values. Can someone suggest how to proceed or suggest alternate solution?

Regards,

Kiran

Labels (1)
1 Solution

Accepted Solutions
kiranb13
Contributor III
Contributor III
Author

Hi Team,

Below one worked.

if(Date#([Onboarding Date_F],'DD/MM/YYYY')>=date#('$(=vFrom)','DD/MM/YYYY') and
Date#([Onboarding Date_F],'DD/MM/YYYY')<=date#('$(=vTo)','DD/MM/YYYY')
,Date([Onboarding Date_F],'DD/MM/YYYY'))

View solution in original post

1 Reply
kiranb13
Contributor III
Contributor III
Author

Hi Team,

Below one worked.

if(Date#([Onboarding Date_F],'DD/MM/YYYY')>=date#('$(=vFrom)','DD/MM/YYYY') and
Date#([Onboarding Date_F],'DD/MM/YYYY')<=date#('$(=vTo)','DD/MM/YYYY')
,Date([Onboarding Date_F],'DD/MM/YYYY'))