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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources 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)

1 Solution

Accepted Solutions
marcus_sommer

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

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.