Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I have a chart with cities in the dimenions and expression as given below. I want the selections to affect the numerator but not the denominator which is a variable .
Count({<[SEGMENT] = {"*ABC*"}>} DISTINCT[ITEMS]) / vAbc
------------------
Variable declaration
vAbc = Count({<[SEGMENT] = {"*ABC*"}>} [ITEMS])
Thanks in Advance,
Arun
Hi,
you can detach your variable from all the selections (all the fields) using this:
vAbc = Count({1<[SEGMENT] = {"*ABC*"}>} [ITEMS])
or just detach your variable from one field, city for example:
vAbc = Count({<[SEGMENT] = {"*ABC*"},[CITIES]>} [ITEMS])
YOu can bypass the field that you want not to impact the output.
Define your variable like below.
vAbc = Count({<[SEGMENT] = {"*ABC*"},[City]>} [ITEMS])
Thanks, you are awesome
don't forget to close the thread if it is ok for you
try this
vAbc = Count({<[SEGMENT] = {"*ABC*"},Cities=>} [ITEMS])