Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Rajat1
Partner - Contributor II
Partner - Contributor II

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

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

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