Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I got a expression like this
COUNT(IF(categori='x' OR categori='y',item)) and want to add an extra condition.
Somthing like this
COUNT(IF(YEAR='2011' AND categori='x' OR categori='y',item))
but this expression does´nt work right - I do not get the right result
Hi,
Try Count ( if ( year = '2011' , if ( catagory = 'X' or catagory = 'Y' , item ) ) )
Regards,
Shubhu
COUNT(IF(YEAR='2011' AND categori='x' AND categori='y',item))
hi ,
if category have one value ( X or Y)
COUNT(IF(YEAR='2011' AND (categori='x' OR categori='y'),item))
Hello Did you try this Set Analysis:
COUNT({$<YEAR = '2011', Categori = {'x', 'y'}>} item)
Can you please try and let me know.
Thanks
Hi,
Try Count ( if ( year = '2011' , if ( catagory = 'X' or catagory = 'Y' , item ) ) )
Regards,
Shubhu
MUCHO
the expression gives med a 0 - and that is wrong
shubhu - Your expression works for me