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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
robertsb41
Contributor III
Contributor III

If Statement with multiple conditions

I am trying to create a calculated field based on multiple columns Contract ID, Bid Rank, and Amount.  If Bid Rank = 2 then I want Amount displayed for each row of the Contract ID.

This displays the amount but only for the row where bid rank =2, If([Bid Rank]=2, Amount).

So what I am getting is:

Contract IDBid RankAmountLow
271250-
272350350
273450-
62110-
6222020
62330-
62440-
731100-
732450450

 

What I want is:

Contract IDBid RankAmountLow
271250350
272350350
273450350
6211020
6222020
6233020
6244020
731100450
732450450

 

12 Replies
sunny_talwar

calculated field? Meaning calculated dimension? Try this for calculated dimension

Aggr(NODISTINCT
    Sum({<[Bid Rank] = {2}>} Amount)
, [Contract ID])
robertsb41
Contributor III
Contributor III
Author

That did it.  Thank you!  I guess you cannot do this in data manager?  Sorry, I've only been using Qlik for less than a month and not real savvy yet.  Thanks again.

sunny_talwar

Data manager is something which is available in Qlik Sense and I mostly have been working on QlikView. May be someone with more knowledge about Data Manager/Qlik Sense can answer this for you.