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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Formula for date begin selected year

     Hi,

I'm looking for the formula in the expressions for the first day of the selected year.

So if I select 2014 i wanne have 01-01-2014

If I select 2013 i wanne have 01-01-2013.

Can somebody help me?

6 Replies
Anonymous
Not applicable
Author

Try the YearStart function

Not applicable
Author

I have this formula at the moment: date(YearStart( Today()))

But that one gives me 01-01-2014 while I selected 2013

ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

=YearStart(Your Date)

Regards

ASHFAQ

ashfaq_haseeb
Champion III
Champion III

Hi,

Replace today() with your datefield.

Regards

ASHFAQ

Anonymous
Not applicable
Author

Today() returns today's date.

You need to use whatever field you are doing the selection on.

Not applicable
Author

Thank you very much for your help. Doesn't work yet but I understand why it doesn't work. Trying to get the right date field instead of Today().