Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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

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