Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
=COUNT({<{((SUM({<BRANDS={
'Michael Kors'
}, YEAR={$(vAñoMax)}>} NETSALES))/(SUM({<YEAR={$(vAñoMax)}>} NETSALES)))>0.5}>
}DISTINCT CUSTOMER_ID)
I am trying to count the number of clients whose total purchases of a brand are greater than 50% of their total purchases so far. but this formula I made does not work, I need help trying to figure this out.
May be try this
=Count(DISTINCT {<CUSTOMER_ID = {"=Sum({<BRANDS = {'Michael Kors'}, YEAR = {$(vAñoMax)}>} NETSALES)/Sum({<YEAR = {$(vAñoMax)}>} NETSALES) > 0.5"}>} CUSTOMER_ID)
This
=Sum({<CUSTOMER_ID = {"=Sum({<BRANDS = {'Michael Kors'}, YEAR = {$(vAñoMax)}>} NETSALES)/Sum({<YEAR = {$(vAñoMax)}>} NETSALES) > 0.5"}>} NETSALES)
May be try this
=Count(DISTINCT {<CUSTOMER_ID = {"=Sum({<BRANDS = {'Michael Kors'}, YEAR = {$(vAñoMax)}>} NETSALES)/Sum({<YEAR = {$(vAñoMax)}>} NETSALES) > 0.5"}>} CUSTOMER_ID)
Try this...
COUNT(
{<
[CUSTOMER_ID] = {"=(SUM({<[BRANDS] = {'Michael Kors'}, [YEAR] = {$(vAñoMax)}>} [NETSALES]) / SUM({<[BRANDS] =, [YEAR] = {$(vAñoMax)}>} [NETSALES])) > 0.5"}
>}
DISTINCT [CUSTOMER_ID]
)
A thouthand thanks, another mistake i was doing is apparently qliksense didn´t like the way i was spacing things, i removed the spaces and it worked.
This
=Sum({<CUSTOMER_ID = {"=Sum({<BRANDS = {'Michael Kors'}, YEAR = {$(vAñoMax)}>} NETSALES)/Sum({<YEAR = {$(vAñoMax)}>} NETSALES) > 0.5"}>} NETSALES)
SUM(
{<
[CUSTOMER_ID] = {"=(SUM({<[BRANDS] = {'Michael Kors'}, [YEAR] = {$(vAñoMax)}>} [NETSALES]) / SUM({<[BRANDS] =, [YEAR] = {$(vAñoMax)}>} [NETSALES])) > 0.5"}
>}
[NETSALES]
)