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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
VamsiBhagavathula1

Condition in set analysis.

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 file of QVF & screenshot. Please let  me know  how  we can achieve it set analysis.

Screenshot 2023-04-24 at 17.46.23.png

 

Thanks,

Vamsi

 

Labels (6)
22 Replies
VamsiBhagavathula1
Author

@vinieme12  yes it does but now my facts ORDERS & REFUNDS were joined by synthetic key . i am loosing my original join which C_ID on the fact tables.

is it better to have synthetic keys in general ??

 

VamsiBhagavathula1_0-1682439505102.png

 

 

vinieme12
Champion III
Champion III

just drop field C_ID from REFUNDS and Orders table;

 

DROP FIELD C_ID ;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
VamsiBhagavathula1
Author

Hi @vinieme12 ,

 

Though compound key worked for Dates stuff, When i pull in dimensions into the table, The data gets broken.

 

VamsiBhagavathula1_0-1685430784597.png

 

 

 

I am attaching the qvf file, Can you please let me know if we could get actual data related with dimensions liked ??