Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with 'Num' function

Hi Qlikview Community,

a simple question from a Qlikview newbie: how do I use the num funtion when I'm combining with sum if?

The following part works:

=

sum(if(Status = 'Closed', [One Off Charge])) resulting in 20158.36, which I would like to format into currency:

I have tried:

=num(sum(if(Status = 'Closed', [One Off Charge], '£#,##0'))) which tells me 'Expression OK' but does not change the result into the format I would like.

Help and explanation would be greatly appreciated,

Thank you!

1 Solution

Accepted Solutions
sivarajs
Specialist II
Specialist II

Put a brace that enclosing sum followed by num function

num(sum(if(Status = 'Closed', [One Off Charge])),'£#,##0')

View solution in original post

5 Replies
sivarajs
Specialist II
Specialist II

Put a brace that enclosing sum followed by num function

num(sum(if(Status = 'Closed', [One Off Charge])),'£#,##0')

er_mohit
Master II
Master II

i think you close the bracket in last in your script try this.

=num(sum(if(Status = 'Closed', [One Off Charge])), '£#,##0')

rest of syntax is perfect...

Not applicable
Author

Hi,

In Chart Properties ------------> Number tab

and Enable----------> Expression Default

u ll get the same format as u written in expression

Not applicable
Author

My apologies! I think I had missed off the '=' - it works Thank you!

Not applicable
Author

Thank you! It works