Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everybody,
i need to calculate a number of sales by distinct ID, comparing 2 values :
if(min(p.Contenu) <= num(p.Event),1)
Anybody could help me to use the right syntax ?
I tried many things as
count(distinct(if(min(p.Kiosque) <= num(p.Event),[Visites ID])))
Thank you for your help.
TRY
IF(min(p.Kiosque) <= num(p.Event),COUNT( DISTNCT [Visites ID],0)
HI
It completely depend upon where you are using the expression . Still you may try this
count({<[Visites ID]={"=min(p.Kiosque) <= num(p.Event)"}>}[Visites ID])
Thanks
Pradosh
Perhaps this?
count(distinct if(min(p.Kiosque) <= num(p.Event),[Visites ID]))