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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Concatenate number with text for display

I am trying to show a number as a % value.

In the database it is held (or calculated) as number between 0 and 1.

If I use the expression: 'X'&100*Avg(A_CON_DS_P_STAR)&'%'

I get the right thing (eg. 29%) just with an X at the start.

If I replace the expression with: 100*Avg(A_CON_DS_P_STAR)&'%'

I get the number 0.29

????

I want the first one without the X at the start!

2 Replies
prieper
Master II
Master II

you may simple use the formatting in Document -> Properties -> Number

edit: similar in Chart-Properties

Else use NUM(MyNumber, '#0.00%')

sunny_talwar
MVP
MVP

You can also try this

Text(100*Avg(A_CON_DS_P_STAR)&'%')

or

Num(Avg(A_CON_DS_P_STAR), '#%')