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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kavita25
Partner - Specialist
Partner - Specialist

How to display more than 1 name with its respective values in a text box...

Hi...

How to display the names in one text box....and also its value as shown in below example.

Please help me to solve this issue, its an urgent...

For e.g

Kavita - 3000

ABC-  4000

Regards,

Kavita

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try using Concat() and Aggr()

=Concat(Aggr(Dim1 & '-' & Sum(Dim2), Dim1), chr(13))

Hope this helps you.

Regards,

jagan.

View solution in original post

10 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Add an expression to the text box, something like:

     =[Name] & ' - ' & [ID Code]

(replace the field names with the correct ones for your data model)

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
kavita25
Partner - Specialist
Partner - Specialist
Author

I want it in front end....and the numeric value is the expression...

Regards,

Kavita

amit_saini
Master III
Master III

Hi,

Try this:

Name & ' - ' & Number

Thanks,

AS

amit_saini
Master III
Master III

Check attachment.

Here I have done with country and Revenue_id

Thanks,
AS

petter
Partner - Champion III
Partner - Champion III

You might be able to use the Concat()-function to help you:

=Concat( DISTINCT Company & ' - ' & Amount , Chr(10) )

This will concatenate the combination of Company field and Amount field and use carriage return to separate

the resulting rows... so it should work in a Text Box. You can also turn on vertical scroll bars in the text box if

you get too many rows to fit in the height.

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try using Concat() and Aggr()

=Concat(Aggr(Dim1 & '-' & Sum(Dim2), Dim1), chr(13))

Hope this helps you.

Regards,

jagan.

kavita25
Partner - Specialist
Partner - Specialist
Author

Thank You Jagan...

The logics is almost as per the requirement, but the name and the respective values is conditional...

For. e.g If Sales is less than 9000 then, the given logic should be applied.

jagan
Partner - Champion III
Partner - Champion III

HI,


Try like this


=Concat(Aggr(If(Sum(Dim2) < 9000, Dim1 & '-' & Sum(Dim2)), Dim1), chr(13))


Hope this helps you.


Regards,

Jagan.

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Hi Kavitha,

Try below Expression.I hope this will work.

=[Emp_Name] & ' - ' & [Emp_ID]


Regards,

Nagarjuna