Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello Friends,
Can anyone help me here.
I have
Name Sales
A 10
B 11
C 20
D 30
I've created straight table, But i want to add one more column which odd & Even numbers
10 - Even - True
11 - Odd - False
I tried this expression
if(Sum(Sales),(odd(Sum(Sales))), 'False',(even(Sum(Sales))), 'True')
Try this: =if(Odd(sum(Sales)),'Odd',If(Even(Sum(Sales)),'Even'))
Try this: =if(Odd(sum(Sales)),'Odd',If(Even(Sum(Sales)),'Even'))
Hi Anil,
Try
Pick(Mod(Sum(Sales),2)+1,'Even','Odd')
Cheers
Andrew
Yes, It is working. But, i want to give Color also like if Odd - Green() & Even - Blue()
Click on the + in front of the expression, select BackGround color and use this expression as Definition:
=if(Odd(sum(Sales)),Green(),If(Even(Sum(Sales)),Blue()))
Hi,
Pick(Mod(Sum(Sales),2)+1,Blue(),Green())
Nice to see, It's working.
Both expressions are working, But first response is Gysbert. That's why i put the flag his Answer.
If you're not fast you're last!!!
all the best
Andrew
Not like that Andrew, I appreciate your nature helping for freshers. That's why we choose the Qlikview
Hi Anil,
please find the qvw attached.
Thanks.