Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
paulopereiraqv
Contributor
Contributor

If expression in Text Object

 

The result of this expression is equal to zero but whwn i do an IF expression in a Text Object  the result is different  than Zero. Can someone help me with this. Thanks.

Qtd1 = 10

Qtd2 = 10

Qtd1 - Qtd2 = 0

 

=If(num(Sum( {< PromoOpor = PromocoesWISE::PromoOpor, DateWise = PromocoesWISE::DateWise >} Qtd1) -
Sum( {< Promo = PromocoesSAP::Promo,Date = PromocoesSAP::Date >} Qtd2), '#,##0.00') = 0, 1, 0)

Labels (1)
1 Solution

Accepted Solutions
marcus_sommer
MVP
MVP

Quite probably are the results of Qtd1 and Qtd2 not absolutely identically. Try it with the following change:

=If(round(Sum( {< ... >} Qtd1), 0.01) - round(Sum( {< ... >} Qtd2), 0.01) = 0, 1, 0)

- Marcus

View solution in original post

2 Replies
marcus_sommer
MVP
MVP

Quite probably are the results of Qtd1 and Qtd2 not absolutely identically. Try it with the following change:

=If(round(Sum( {< ... >} Qtd1), 0.01) - round(Sum( {< ... >} Qtd2), 0.01) = 0, 1, 0)

- Marcus

paulopereiraqv
Contributor
Contributor
Author

Thanks Marcus. You save my Day.