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: 
Ironzem
Contributor III
Contributor III

Expression Calculation

I have an expression which gives the correct result if filtered for a single day but when multiple days are selected the calculation goes array. I need to set this expression to give me a sum of per day calculation.

This is my current expression -

Rangemax(count({$<[FlagCheckin]={1}>} FlagCheckin) + RangeMax(count({$<[FlagExit]={1}>} FlagExit) - count({$<[FlagCheckin]={1}>} FlagCheckin) - count({$<[FlagTransfer]={1}>} FlagTransfer),0) + Sum({<FP_TYPE={'Transfer'}>}Flag),1)

On a table where I include a date dimension , calculation results is correct - on the summary table it is wrong

Ironzem_0-1664879418879.png

 

 

Labels (1)
1 Solution

Accepted Solutions
Rockstar7
Partner - Creator
Partner - Creator

@Ironzem  apply Aggr() to you expression with token number & Date like below

Aggr(expression,Token Number,Date)

 

View solution in original post

2 Replies
Rockstar7
Partner - Creator
Partner - Creator

@Ironzem  apply Aggr() to you expression with token number & Date like below

Aggr(expression,Token Number,Date)

 

Ironzem
Contributor III
Contributor III
Author

Thank you , worked perfect .  just added Sum (Aggr (expression,TN,Date))