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: 
don_qlikview
Creator
Creator

Dimension into an expression


Hello Everyone,

 

I need help with an if condition that I am writing in an expression. So, the condition is like this if(Sum(

[Sales]) > 0, [Item Name] & '*', [Item Name]). When I write
this condition I am only getting * not the field "Item Name"
. So, can somebody tell me how to get the field name too in th expression?

Thanks,

Don

2 Replies
maxgro
MVP
MVP

and with

maxstring([Item Name]) instead of [Item Name]?

perhaps you have more than 1 item name for every row

Anonymous
Not applicable

Don,

Blind guess (it would be better to see your application or at least data model):

You need this result per item, so:

aggr(if(Sum([Sales]) > 0, [Item Name] & '*', [Item Name]), [Item Name])