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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
SariPari
Creator
Creator

if statement

I have the below table - 

City ID Capacity HC MAXCAPACITY COMBINEDHC CapacityRank Output
Bangalore BLR09 408 318 408 551 1 318
Bangalore BLR86 265 233     2 233
Boston BOS04 402 234 402 300 1 300
Boston BOS50 114 66     2 0

 

Need the Output as above -

If (MAXCAPACITY > COMBINEDHC, COMBINEDHC ,

 If (MAXCAPACITY < COMBINEDHC, HC))

Also - if MAXCAPACITY > COMBINEDHC only CapacityRank with ranl 1 should have the value and other one should be 0.

 

Thank you so much.

@swuel @Jagmeet_singh @Sunny @randres_talend @Anil_Babu_Samineni 

 

10 Replies
SariPari
Creator
Creator
Author

@Anil_Babu_Samineni  - Awesome Anil sir.You are the best!