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

date

I want date as 1/04/2012 if I select year 2012 or any year ...

means I want only first date of april month for that particular year

can any one help??

1 Solution

Accepted Solutions
Not applicable
Author

I did this to ur expression and I am now getting the proper answer for that particular Year

=date(date#(if(Year=max(Year),'01/04/' & Year)),'MM,DD,YYYY')

View solution in original post

10 Replies
Not applicable
Author

Try This

    if(year='max(year)',monthstart(monthname))

Anonymous
Not applicable
Author

hi Reshma,

                  U can use MonthStart () function

                   Eg: MonthStart(Monthname)

                  Hope it workz....

regards,

Vaibhav

Not applicable
Author

but I want that particular year also get change what I select

Not applicable
Author

Can you share your test app with me

Not applicable
Author

if you use that above expression.......what output is it shows?

Not applicable
Author

Hi

use the makedate()

for exm

makedate(2012,4)---

it gives   4/1/2012

Not applicable
Author

Hi

see the below expr

i use this expr in calculated dimension

=makedate(year(PERIOD_START_DATE),month(today()))

it works for me

try this expr.

Not applicable
Author

I did this to ur expression and I am now getting the proper answer for that particular Year

=date(date#(if(Year=max(Year),'01/04/' & Year)),'MM,DD,YYYY')

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this, this is the simple way

=Date(MakeDate(Max(Year), 4, 1), 'DD/MM/YYYY')

Regards,

Jagan.