Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
morenoju
Partner - Specialist
Partner - Specialist

Subset of field values in filter pane

Hi guys,

I have a calendar in Qlik Sense with a date field called Date_A. In a filter pane, instead of showing all its values, I'd like to show last month and current month until today:

=if (Date_A<=Today(0),
if (InMonth(Date_A,Today(0),-1),Date_A,
if(InMonth(Date_A,Today(0),0),Date_A)))

The expression works fine, in the filter pane I only see the dates for last month and this month until today.

But when I make a selection, instead of Date_A='1/15/2019' what I get is:

=if (Date_A<=Today(0),
if (InMonth(Date_A,Today(0),-1),Date_A,
if(InMonth(Date_A,Today(0),0),Date_A)))='1/15/2019'

image.png

It's not Date_A what it's taking the value, so my charts don't work.

Any idea on what to do to get this to work?

Thanks!

Juan

 

 

Labels (3)
1 Reply
Gabriel
Partner - Specialist III
Partner - Specialist III

Hi,

Can you upload a sample data with the calendar? This will help with solutions