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: 
VamsiBhagavathula1
Creator
Creator

Set analysis with conditions

Hello Guys,

Could someone please tell me how to do a field comparison inside set analysis based on the Qlik calendar?

in my case, one customer has multiple refunds for a order on different dates. Qlik calendar is giving me multiple rows for the refund dates(like cross join) . Out of this i need only the rows where calendar date matches refund date.  After this , I need to make some set analysis.

So, mainly, I want to achieve this Date comparison of calendar date & refund date in set analysis and perform count & sum aggregations.

Please see the screenshot attached. Please tell me how can i achieve it set analysis.

Screenshot 2023-04-24 at 17.46.23.png

 

QVF File attached

Thanks,

Vamsi

 

Labels (1)
3 Replies
edwin
Master II
Master II

try sum(if(date=refundDate,1,0))

having said that where does Date from the picture come from?  is it selected by the user?

VamsiBhagavathula1
Creator
Creator
Author

@edwin : Date come from Qlik Torbien calendar. i will try it and let you know

Sabrina_V
Partner - Creator II
Partner - Creator II

Maybe in the set analysis date={"if(date=refundDate,1,0)=1"}

But, I wonder if the AGGR function would not be necessary