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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Date

HI All ,

Please find the attachment of the qwv file .

I have a field called date .

I want to create a field which has 45 days and one more field of 120 days ...

How can i achieve this ?

Tahnks in advance

1 Solution

Accepted Solutions
prma7799
Master III
Master III

4 Replies
Anil_Babu_Samineni

How you are expecting?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
smilingjohn
Specialist
Specialist
Author

Hi Anil,

I want to it in a variable ...or in a filter

Anil_Babu_Samineni

Still not understandable. But for a while try these?

=If(Day(Date) <= 45, Dual('45 Days',1), If(Date(Date)<=120, Dual('120 Days',2)))

OR

=If(Day(Date)>= 0 and Day(Date) <= 45, '45 Days', If(Day(Date) >=46 and Day(Date) <= 120, '120 Days'))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
prma7799
Master III
Master III

Like this???