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: 
johnan
Creator III
Creator III

ErrorFlag

Hi all,

I want to flag if my balance with a casepack is uneven. 
Balance = 15
Casepack = 12
Balance/Casepack = Uneven (Just give me 1,if uneven or 0 is even)

Is there a smart funtion to that?

Or someone have it 🙂

 

Labels (2)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Oh you mean if there are no decimals? May be this

If(Mod(Balance, Casepack) = 0, 'Even', 'Uneven')

 

View solution in original post

6 Replies
johnan
Creator III
Creator III
Author

ODD i think, 😄

johnan
Creator III
Creator III
Author

Hmm, or not?

johnan
Creator III
Creator III
Author

I noticed that if my value is 13 it's ok, but if it's 13,5 it doesent work.

sunny_talwar
MVP
MVP

When you say even, do you mean = 1? or do you mean even as in 2, 4, 6, 8 and odd as in 1, 3, 5?

johnan
Creator III
Creator III
Author

Hi, no, i just want to flag if below is ODD

Balance = 15
Casepack = 12

Balance: 15/Casepack (12) = Uneven (1,25)  (Give me "Wrong")

Balance:  24/Casepack (12) = Even (2) (Give me "OK") 

🙂

BR

sunny_talwar
MVP
MVP

Oh you mean if there are no decimals? May be this

If(Mod(Balance, Casepack) = 0, 'Even', 'Uneven')