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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression for current year total days

Hi Qlikers,

I want to know total days in a current year days..

Please suggest me  the best expression .


1 Solution

Accepted Solutions
aveeeeeee7en
Specialist III
Specialist III

Try something like this in Text Box Expression:

1)  round(YearEnd(Today())-YearStart(Today()))

2)  round(YearEnd(vMaxYear)-YearStart(Today(vMaxYear))) 

Create vMaxYear Variable and give value in it like vMaxYear=Year(Today) or vMaxYear=Max(Year)

Hope that helps you.

Regards

Aviral Nag


View solution in original post

3 Replies
aveeeeeee7en
Specialist III
Specialist III

Try something like this in Text Box Expression:

1)  round(YearEnd(Today())-YearStart(Today()))

2)  round(YearEnd(vMaxYear)-YearStart(Today(vMaxYear))) 

Create vMaxYear Variable and give value in it like vMaxYear=Year(Today) or vMaxYear=Max(Year)

Hope that helps you.

Regards

Aviral Nag


SunilChauhan
Champion II
Champion II

interval(YearEnd(Today())-YearStart(Today()),'DD')

or

age(YearEnd(Today()),YearStart(Today()))

Sunil Chauhan
Not applicable
Author

Hi,

to get the number of days in current Year use this expression

=floor(Num(YearEnd(Today()))-Num(YearStart(Today()))) + 1



Regards,

Vivek