Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

If Statement

Screenshot.png

In the Above table I need for the Breed to be calculated based on the Head Placed column. If the amount of any Breed is more than 80% of the total Head then that Breed will be used in naming, If not then it will be called "MIXED". Any assistance on this will be greatly appreciated.

1 Reply
Not applicable
Author

I think using aggr is your solution:

if(sum([head placed]) > sum(aggr(sum([head placed]), [group cd]))*80,'MIXED',[breed])