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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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 II
Partner - Master II

Hi, perhaps use an expression to filter the table.

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