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: 
Rajat1
Partner - Contributor III
Partner - Contributor III

Date not working in set analysis.

So I have written an expression, First part of date is showing correct but other part is not getting calculated.

 

=count(distinct{(< customer_key=p ({<order_processing_date_plan_acv_link={"$(= '>='& date(MonthStart(min(order_processing_date_plan_acv_link),-2))) & '<=' & date(MonthStart(min(order_processing_date_plan_acv_link),-1))))"}>})>

-(< customer_key=p ({<order_processing_date_plan_acv_link={"$(= '>='& date(MonthStart(min(order_processing_date_plan_acv_link),-2))) & '<' & date(MonthStart(min(order_processing_date_plan_acv_link),-1))))"}>})>
*
< customer_key=p ({<order_processing_date_plan_acv_link={"$(= '>='& date(MonthStart(min(order_processing_date_plan_acv_link),-1))) & '<=' & date(MonthStart(min(order_processing_date_plan_acv_link))))"}>})>))
* < customer_key=p ({<order_processing_date_plan_acv_link={"$(= '>='& date(MonthStart(min(order_processing_date_plan_acv_link)))) & '<=' & date(MonthEnd(min(order_processing_date_plan_acv_link))))"}>})>
} customer_key)

Attaching the screenshot of output for the above expression please let me know how get date after '&' , its not getting calculated.

Rajat1_0-1681334915413.png

Thanks,

Rajat.

 

 

Labels (2)
1 Reply
marcus_sommer
MVP
MVP

The syntax isn't right - it should be rather look like (simplified):

count({< Date = {">=$(=min(Date))<=$(=max(Date))"}>} Key)