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

YTD Button

Hello folks,

I'd like to creat a button in QV that selects all months that already passed

(for example: we are in April, I need to select Jan, Feb and Mar)

Month is the field name.

Could you people help me?

Thanks in advance

Filippo

1 Solution

Accepted Solutions
5 Replies
rubenmarin

Hi Filippo, it can vary depending how the month field is created, but this can work in some situations:

In properties of the button add an action "Select in field":

FieldName: MonthFieldName

Value: ='<=' & Num(Month(Today()))

qv_testing
Specialist II
Specialist II

PFA,

Anonymous
Not applicable
Author

Yeah, exactly.

But, I want to click YTD and select from 01/jan to 31/mar, because April has not finished yet.

qv_testing
Specialist II
Specialist II

PFA,

Anonymous
Not applicable
Author

Thanks man!