Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
cmutombo
Contributor III
Contributor III

Number format

Hi Communauty, 

I need help :

I have import an extraction from SAP to use on Qlik.

But, colonne suppose to have amounts is on format :

POSITIVE AMOUNTS :  1.500,00

NEGATIVE AMOUNTS : 1.500,00-

I can not  use NEGATIVE AMOUNTS with sign (-) at the end.

I need to change at correct format. 

Some one can assist ?

 

 

12 Replies
cmutombo
Contributor III
Contributor III
Author

Hi Frank_Hartmann

Here below the CORRECT ONE. THANKS A LOT FROM YOU !

Load *, if(right([Amount],1)='-',
'-'&purgechar([Amount],'-'),
[Amount]),

Replace(if(right([Amount],1)='-',
'-'&purgechar([Amount],'-'),
[Amount]),'.',''),

Replace(Replace(if(right([Amount],1)='-',
'-'&purgechar([Amount],'-'),
[Amount]),'.',''),',','.') as Amount_

cmutombo
Contributor III
Contributor III
Author

CORRECT ANSWER !

cmutombo
Contributor III
Contributor III
Author

Hi Frank, 

Could you help with this formula... Something is wrong.

The result don't consider that i am suming All transaction of current month

=sum({$<[MonthName(Date)]= {"$(=MonthName(Today()))"}>}Amount_)