Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Dual Function is not working

Hi all,

I used dual function like following

=Dual(Channel & '(' & num(Sum(Profitability)/1000,'#.#0%')& ')',num(Sum(Profitability)/1000,'$#,##0 K;($#,##0 K)'))

i got only (175695080.00%) value but i want % value as well as second expression value

Please help me

thanks,

1 Reply
Peter_Cammaert
Partner - Champion III
Partner - Champion III

The dual() function can be used to fill both the numerical part and the string representation of a value/field in QV memory. You cannot use it to concatenate strings, it that is what you want.

Use this to provide custom formatting for your expression results:


=Only(Channel) & '(' & num(Sum(Profitability)/1000,'#.#0%')& ')' & ' ' & num(Sum(Profitability)/1000,'$#,##0 K;($#,##0 K)')