Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
nblf
Contributor
Contributor

Filtering a table's date field using expression

Hello Community,

I need some assistance with filtering a table's "Period" field, which contains dates in the format of YYYYMM, to show only periods that are earlier than the current date.

My plan was to create a button with an action to select variables in the field and use an expression such as Period < Date(today(), 'YYYYMM') to filter it. However, this method has not been successful.

I am hoping to find a solution. Thank you in advance for your help.

Labels (1)
1 Reply
BrunPierre
Partner - Master
Partner - Master

Hi, perhaps use an expression to filter the table.

Sum({$<Period={"<=$(=Date(MonthStart(Today(), 0), 'YYYYMM'))"}>} YourMeasure)