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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
JamesMF82
Contributor II
Contributor II

Returning Visit information between a month

Hi,

I have a selectable dimension called CalanderMonth that I am able to select return information for the current month of shifts that have not been allocated. This works fine, but I would like to be able to return the following months information.

I have a VisitStartDate field that I am using for the date element, a new variable which works out the following month start and one that works out the end of the month vNextCalendarMonthStart and vNextCalendarMonthEnd respectively.

Currently I have the formula =num(Sum({<VisitPayStatus = {'Incomplete*'}}VisitCounter) ,'#,###.') to pull the data for this month, but I need to expand it to only return information on the following month. Any help would be great. Thank you.

1 Reply
abhijitnalekar
Specialist II
Specialist II

Hi @JamesMF82 ,

Please try the below expression.

num(Sum({<VisitPayStatus = {'Incomplete*'},

VisitStartDate=("='>=' & Date(vNextCalendarMonthStart, 'MM/DD/YYYY') & '<=' & Date(vNextCalendarMonthEnd, 'MM/DD/YYYY')")

>}VisitCounter) ,'#,###.') 

 

Regards,
Abhijit
keep Qliking...
Help users find answers! Don't forget to mark a solution that worked for you!