Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikvw2019
Contributor
Contributor

Calculate percentage in Text object

Need Help.

I have below expression in the text object , the final output needs to be a % rounded up. Below one is actually giving me with the decimals. Is there a better way to do it?

Output=41.43989 

Expected= 41%  (also how do i add a percentage sign at the end)

=(count({<[Status]={"COMPLETED"}>}[Status])
/count({<[DB Tech]={"SQL","ORACLE","DB2-LUW"}>}[DB Tech])*100)

1 Solution

Accepted Solutions
sunny_talwar

Try this instead

Num(
Count({<[Status] = {"COMPLETED"}>}[Status])
/
Count({<[DB Tech] = {"SQL","ORACLE","DB2-LUW"}>}[DB Tech])
, '#%')

or

Num(
Count({<[Status] = {"COMPLETED"}>}[Status])
/
Count({<[DB Tech] = {"SQL","ORACLE","DB2-LUW"}>}[DB Tech])
, '#.%')

 

View solution in original post

1 Reply
sunny_talwar

Try this instead

Num(
Count({<[Status] = {"COMPLETED"}>}[Status])
/
Count({<[DB Tech] = {"SQL","ORACLE","DB2-LUW"}>}[DB Tech])
, '#%')

or

Num(
Count({<[Status] = {"COMPLETED"}>}[Status])
/
Count({<[DB Tech] = {"SQL","ORACLE","DB2-LUW"}>}[DB Tech])
, '#.%')