Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis expression

Hi,

Can someone help me to understand the next expression?

sum({$<

  METRIC_TYPE={'TtO' }

  , CREATIONTIME={">= $(= vFromDate ) < $(= vToDate +1)"}

  >} $(TIME_FACTOR) )

Thanks,

Boris

1 Solution

Accepted Solutions
israrkhan
Specialist II
Specialist II

no , not sum for all value,but for those value, who fall in the below criteria,

Where Metric_Type = "Tto" and Creation_Time is Greater Than or equal to vFromDate and

Creation_Time Less Than vToDate plus one day.

View solution in original post

6 Replies
israrkhan
Specialist II
Specialist II

Hi,

vFromDate = taking input from user are have assigned a default value

vToDate, same like above, but adding +1 day


This Expression is doing Sum of Time_Factor, that is a field in Data Source.

But Only those Time Factor, Where Metric_Type = "Tto" and Creation_Time is Greater Than or equal to vFromDate and

Creation_Time Less Than vToDate plus one day,

for example vToDate contain a date like  20/11/2013, then vToDate + 1 will be 21/11/2013.

Hope will help,

sorry if i could not explain well

Anonymous
Not applicable
Author

IsrarKhan,

Looks correct except of the $(TIME_FACTOR).  From the expression syntax it is rather a variable than a field.  That is, the expression returns sum of the field specified in this variable, with the conditions as you've described.

Regards,

Michael

israrkhan
Specialist II
Specialist II

Hi Michael,

OOOPS , did not realized that its a variable.

Thanks for corrections.

Not applicable
Author

It is indeed a field that is assigned into this variable.

does it mean that the sum is for all the values in this field even if it is assigned to a variable?

Thanks,

Yousef_Amarneh
Partner - Creator III
Partner - Creator III

I think yes

Yousef Amarneh
israrkhan
Specialist II
Specialist II

no , not sum for all value,but for those value, who fall in the below criteria,

Where Metric_Type = "Tto" and Creation_Time is Greater Than or equal to vFromDate and

Creation_Time Less Than vToDate plus one day.