IF { FIXED [Nombre de cliente] : SUM([Ganancias])} > 0
THEN "ganancias positivas"
ELSEIF { FIXED [Nombre de cliente] : SUM([Ventas])} > 5000
THEN "compra mucho"
ELSE "compra poco"
END
IF MIN([Categoría de cliente (fija)]) = "compra mucho"
THEN SUM({ FIXED : COUNTD( IF {INCLUDE [Nombre de cliente]: SUM([Ventas])} >= 5000 THEN [Nombre de cliente] END )})
ELSEIF MIN([Categoría de cliente (fija)]) = "compra poco"
THEN SUM({ FIXED : COUNTD( IF {INCLUDE [Nombre de cliente]: SUM([Ventas])} < 5000 THEN [Nombre de cliente] END )})
ELSEIF MIN([Categoría de cliente (fija)]) = "ganancias positivas"
THEN SUM({ FIXED : COUNTD( IF {INCLUDE [Nombre de cliente]: SUM([Ganancias])} > 0 THEN [Nombre de cliente] END )})
END
[Categoría de cliente ~ compra mucho/poco]: IF SUM([Ventas]) > 5000 THEN "compra mucho" ELSE "compra poco" END
[Categoría de cliente ~ ganancias positivas]: IF SUM([Ganancias]) > 0 THEN "ganancias positivas" END
IF [Categoría de cliente] = "compra mucho"
AND { FIXED [Nombre de cliente], [Categoría de cliente] : SUM([Ventas]) } >= 5000
THEN "compra mucho"
ELSEIF [Categoría de cliente] = "ganancias"
AND { FIXED [Nombre de cliente], [Categoría de cliente] : SUM([Ganancias]) } > 0
THEN "ganancias positivas"
ELSEIF [Categoría de cliente] = "compra poco"
AND { FIXED [Nombre de cliente], [Categoría de cliente] : SUM([Ventas]) } < 5000
THEN "compra poco"
END
001474113
2465 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.