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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jerryr125
Creator III
Creator III

Count number by Date - Current date to the prior quarter

Hi - I have the following formula in a master measure:

Count({<[REQUESTDATE]={'>=$(=QuarterStart(Max(REQUESTDATE), -1))<=$(=Date(Max(REQUESTDATE)))'}>} [REQUESTDATE] )

 

Basically, I would like a count of requests for each Request for dates from the max REQUESTDATE (say today) to the first date of the quarter (10/1/2020).  

The formula gives me an 'OK' but when I display in a chart it does not work. Any thoughts ? 

Thanks - Jerry

Labels (1)
2 Solutions

Accepted Solutions
GaryGiles
Specialist
Specialist

I think you need to use " instead of ' in your set analysis:

Count({<[REQUESTDATE]={">=$(=QuarterStart(Max(REQUESTDATE), -1))<=$(=Date(Max(REQUESTDATE)))"}>} [REQUESTDATE] )

View solution in original post

jerryr125
Creator III
Creator III
Author

Thank you - that was the solution - appreciate it ! Jerry

View solution in original post

2 Replies
GaryGiles
Specialist
Specialist

I think you need to use " instead of ' in your set analysis:

Count({<[REQUESTDATE]={">=$(=QuarterStart(Max(REQUESTDATE), -1))<=$(=Date(Max(REQUESTDATE)))"}>} [REQUESTDATE] )

jerryr125
Creator III
Creator III
Author

Thank you - that was the solution - appreciate it ! Jerry