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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

unable to execute set analysis date wise

Dear All,

facing problem of using set analysis

we are created variables as below

CCR_PPC : 

=sum( { $ <Plant_Code= {'2300'}, Product_Type={1}, Material_Code={'CCRPPC'},  VC.Period=P(VC.Period) >} Quantity )

CCR_PSC :

=sum( { $ <Plant_Code= {'2300'}, Product_Type={1}, Material_Code={'CCRPSC'},  VC.Period=P(VC.Period) >} Quantity )


When we are using above result in pivot table with expression as below


if(match(PCSNO,7,8,9)<>0 and Plant_Code=2300,if(Material_Code_Product='PPC',CCR_PPC,if(Material_Code_Product='PSC',CCR_PSC,0)))

then its giving result value of the month not day wise.

Untitled.jpg

3 Replies
tajmohamed30
Creator III
Creator III

You can use Day(Date_Column) in your expression

Peter_Cammaert
Partner - Champion III
Partner - Champion III

I guess your variable formulas are being calculated at the wrong moment. Maybe you should remove the equal signs from your variable formulas, and use $-sign expansion in your actual expression. Like:

CCR_PPC :

sum( { $ <Plant_Code= {'2300'}, Product_Type={1}, Material_Code={'CCRPPC'},  VC.Period=P(VC.Period) >} Quantity )

CCR_PSC :

sum( { $ <Plant_Code= {'2300'}, Product_Type={1}, Material_Code={'CCRPSC'},  VC.Period=P(VC.Period) >} Quantity )


Pivot table formula:


if( match(PCSNO,7,8,9)<>0 and Plant_Code=2300,

   if(Material_Code_Product='PPC', $(CCR_PPC), if (Material_Code_Product='PSC', $(CCR_PSC), 0)))

Best,

Peter

Not applicable
Author

Dear All,

Thanks for your response

There was some other problem in my pivot table dimensions. the same has corrected now.

Please ignore the discussion.