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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
abhaysingh
Specialist II
Specialist II

Set Analysis help

Hi,

how to put below condition in set analysis

thanks in advance

if(sum({<Bucket = {'1 YR'}>}VMKUM) > sum(STOCK1), sum(STOCK1),sum({<Bucket = {'1 YR'}>}VMKUM))

1 Solution

Accepted Solutions
sunny_talwar

How about this?

RangeMin(Sum(STOCK1), Sum({<Bucket = {'1 YR'}>}VMKUM))

View solution in original post

5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

That if statement can't be transformed into a set analysis expression. It has two branches that each calculate a result.


talk is cheap, supply exceeds demand
avinashelite

Agree with gwassenaar‌ since it has branch statement we need to use If condition 

sunny_talwar

How about this?

RangeMin(Sum(STOCK1), Sum({<Bucket = {'1 YR'}>}VMKUM))

abhaysingh
Specialist II
Specialist II
Author

getting same output as if condition.. thanks

sunny_talwar

It does, its just another way to avoid the if statement in your case