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: 
romualdlecordier
Contributor
Contributor

Mettre 0 quand le résultat est entre -1 et 0

Bonjour

Dans qlick sense, j'ai une formule qui est sum([Net Amount]) - sum ([Montant facturé])

J'ai besoin de votre aide, j'aimerai que lorsque le résultat est entre -1 et 0, il affiche 0 sinon le vrai résultat

Est ce possible ?

Romuald

1 Solution

Accepted Solutions
Taoufiq_Zarra

try this :

=if((sum([Net Amount]) - sum([Montant facturé]) )>=-1 and (sum([Net Amount]) - sum([Montant facturé]) )<=0,0,sum([Net Amount]) - sum([Montant facturé]))
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

2 Replies
Taoufiq_Zarra

try this :

=if((sum([Net Amount]) - sum([Montant facturé]) )>=-1 and (sum([Net Amount]) - sum([Montant facturé]) )<=0,0,sum([Net Amount]) - sum([Montant facturé]))
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
romualdlecordier
Contributor
Contributor
Author

Bonjour,

Parfait ca marche

Merci beaucoup pour ton aide

Romuald