Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

CSV with Negative Value upload to Qlikview

Dear Folks,

             I have CSV file with Comma Separator.  If I load in Qlikview, the negative value is showing like 4.00- and it should be -4.00. Due to this i cant add that value. so total is showing wrongly. Please help ASAP.

Regards,

Sakthi.

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

You can load like this for example:

if(Right(NumericField,1)='-',-1*Num#(Left(NumericField,Len(NumericField)-1),'#.#'),Num#(NumericField,'#.#'))

Hope this helps.

View solution in original post

5 Replies
rustyfishbones
Master II
Master II

Can you share the CSV file?

Not applicable
Author

Attach your sample CSV...

Not applicable
Author

Hi,

You can load like this for example:

if(Right(NumericField,1)='-',-1*Num#(Left(NumericField,Len(NumericField)-1),'#.#'),Num#(NumericField,'#.#'))

Hope this helps.

Not applicable
Author

Are the 4.00- in the CSV file ?

If yes, QlikView will able to read them. In the Table Viewer, you will see the data as they are in the file, but not in the UI (formatted as you want). You can also add or substract them.

If it still does not work, use the num() function. num(Yourfield, '#.##;#.##-', '.', '') as xx

Fabrice

Not applicable
Author

Dear

    Thanks for your Response. Its working Perfectly.

Regards,

Sakthi