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: 
upaliwije
Creator II
Creator II

Number format

Hi Friends

I have in pivot table following expression.

IF(VALUELIST('GROSS PREMIUM NEW','REFUNDS NEW','NET PREMIUM NEW','GROSS PREMIUM RENEWAL','REFUNDS RENEWAL','NET PREMIUM RENEWAL','NET PREMIUM TOTAL','PREMIUM LAST YEAR','GROWTH %','BUDGET C.Y.','ACH.%')='ACH.%'

,(sum({$<PERIODID = {$(=Max(PERIODID))},MO_NM={'MOTOR'},YEAR =,QUARTER =,MONTH =,PERIOD =,DAY=>}[PREMIUM])/sum({$<PERIODID = {$(=Max(PERIODID))},MO_NM={'MOTOR'},YEAR =,QUARTER =,MONTH =,PERIOD =,DAY=>}[DAILY_BUDGET]))*100

Currently the Ach % is shown as 55 and I want Ach % to be shown as 55.3%. Kindly advise me ho to modify my expression

7 Replies
uacg0009
Partner - Specialist
Partner - Specialist

Hi UPALI,

in your expression, you don't need to * 100, and you need to use a num() function, like :

num(sum(xxx)/sum(xxx),'##.#%')

Aiolos Zhao

upaliwije
Creator II
Creator II
Author

Thanks Zaho

Still it shows the same way. I am using a pivot table pls mot a text box

upaliwije
Creator II
Creator II
Author

Hi Zaho

You formats works when I enter it as a individual expression. But when I couple it with if(valuelist...... Command it does not show in required format. Pls help

                                       Valuelist           Individual

REFUND RATIO NEW5251.6%
upaliwije
Creator II
Creator II
Author

‌hi friends,

can can someone suggest me a solution please.

Anil_Babu_Samineni

Try this way?

IF(VALUELIST('GROSS PREMIUM NEW','REFUNDS NEW','NET PREMIUM NEW','GROSS PREMIUM RENEWAL','REFUNDS RENEWAL','NET PREMIUM RENEWAL','NET PREMIUM TOTAL','PREMIUM LAST YEAR','GROWTH %','BUDGET C.Y.','ACH.%')='ACH.%'

,Num((sum({$<PERIODID = {$(=Max(PERIODID))},MO_NM={'MOTOR'},YEAR =,QUARTER =,MONTH =,PERIOD =,DAY=>}[PREMIUM])/sum({$<PERIODID = {$(=Max(PERIODID))},MO_NM={'MOTOR'},YEAR =,QUARTER =,MONTH =,PERIOD =,DAY=>}[DAILY_BUDGET]),'#,##0.0'))*100

Or

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
uacg0009
Partner - Specialist
Partner - Specialist

Hi UPALI,

I think it will be the same whether you use it in valuelist or not...

Like below Anil said, in your table's properties - Number tab, what's your format setting you selected, you can try to use the expression default.

Aiolos Zhao

upaliwije
Creator II
Creator II
Author

Thanks

When I apply your expression I get more than one decimal points

Screenshot_3.png

Pls help