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

NUM format

Hi,

I set this format in a field in my script: Num(FIELD_VALUE, '#,##0')

If FIELD_VALUE is 8.00 qlikview correctly formats it to 8.

But if FIELD_VALUE is 1, the format becomes 1.0000 which is wrong.

The value should remain 1.

Any idea how to overcome this?

Thanks.

1 Solution

Accepted Solutions
Not applicable
Author

try this

LOAD num(xx,'#.##0') as x, * INLINE [

    xx

    8.00

    1

];

or try this

LOAD num(xx,'#,##0') as x, * INLINE [

    xx

    8.00

    1

];

View solution in original post

6 Replies
Not applicable
Author

try this

LOAD num(xx,'#.##0') as x, * INLINE [

    xx

    8.00

    1

];

or try this

LOAD num(xx,'#,##0') as x, * INLINE [

    xx

    8.00

    1

];

kumarnatarajan
Partner - Specialist
Partner - Specialist

Hi,

Use only Num() function don't put any formats

Ex: Num(FIELD_VALUE)

Not applicable
Author

or simply write this

LOAD num(xx) as tt, * INLINE [

    xx

    8.00

    1

];

er_mohit
Master II
Master II

Try this

num(num#(Fieldname))

Sokkorn
Master
Master

Hi,

This one shuold work Num(Num#(FIELD_VALUE,'#'),'#,##0')

Regards,

Sokkorn

Not applicable
Author

thank you for all the replies. i think all of your suggestion works. the problem was with the way I load my data. once i've fixed that, the normal num(fieldname, format) works.

thank you again for taking the time to reply.