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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Nagaraj6
Contributor II
Contributor II

Date Expression issue

Hello All,

I need a help

 

Nagaraj6_0-1683782109121.png

Above is qlikview output: I Need expression In a month  of 1st date to yesterday Booking counts is the Backward Booking,

today to end of month is the Forward booking. I am using only Tour_Start_Date with  that I have calulate this.

Example Tour_Star_date :

Nagaraj6_1-1683782707279.png

I need expression?

output this form:

Nagaraj6_2-1683783217902.png

 

Regards

Nag..

 

 

 

Labels (1)
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

Try this 

Backward Booking Count:

Count({<Tour_Start_Date = {"<=$(=Date(AddMonths(MonthStart(Today()), -1), 'YYYY-MM-DD'))"}>} Tour_Start_Date)

Forward booking count

Count({<Tour_Start_Date = {">$(=Today())"}>} Tour_Start_Date)

 

View solution in original post

2 Replies
Chanty4u
MVP
MVP

Try this 

Backward Booking Count:

Count({<Tour_Start_Date = {"<=$(=Date(AddMonths(MonthStart(Today()), -1), 'YYYY-MM-DD'))"}>} Tour_Start_Date)

Forward booking count

Count({<Tour_Start_Date = {">$(=Today())"}>} Tour_Start_Date)

 

Nagaraj6
Contributor II
Contributor II
Author

@Chanty4u  Thank you!!

I got this below 

Nagaraj6_1-1683784861125.png

 

is this Forword booking  end of the month only or next month also will included??

and How to sum of Both expressions?