Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
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