Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME 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])