{ FIXED [ID de pedido]: MAX(
IF [Nombre de producto] = "Cargador de grapas"
THEN 1
ELSE 0
END)}
En este ejemplo, se añadió [Estado] a Texto con el fin de clasificar por categorías los estados según el número de ciudades con beneficios negativos.
{ FIXED [Estado] : SUM(
IF { INCLUDE [Ciudad]: SUM([Beneficios]) } < 0
THEN 1
ELSE 0
END
) }
IF [Número de ciudades no rentables] = 0
THEN "Todas las ciudades tienen beneficios positivos"
ELSEIF [Número de ciudades no rentables] = 1
THEN "Una ciudad tiene beneficios negativos"
ELSE "Varias ciudades tienen beneficios negativos"
END
IF
WINDOW_SUM(
IF SUM([Beneficios]) < 0
AND [Clasificación de ventas] <= 10
THEN 1
ELSE 0
END ) > 2
THEN "Tres o más clientes con beneficios negativos"
ELSE "Estado de solvencia"
END
001456701
1297 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.