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

Announcements
Learn how to migrate to Qlik Cloud Analytics™: On-Demand Briefing!
cancel
Showing results for 
Search instead for 
Did you mean: 
maxsheva
Creator II
Creator II

Aggr by calculated field

Hi,

I need to aggregate values by two dimensions where one of them is calculated.

Is it possible to create?

LOAD * Inline [

GroupName, Value

Group1, 100

Group1, 300

Group2, 500

Group2, 900

Group2, 150

];

Expression is

Aggr(Sum(Value),GroupName

,if(Value<=100,1,if(Value<=500,2,3))

)

21 Replies
antoniotiman
Master III
Master III

Is it really true.

Regards,

Antonio

maxsheva
Creator II
Creator II
Author

Antonio,

Do you have a suggestion if Count(Value1) firts?

Something like this Sum(Count( distinct Value1)*Value2)