Para crear este cálculo, siga los pasos a continuación y consulte el libro de trabajo adjunto.
SUM([Sales])-SUM([Sheet1 (target)].[Target])3. Cree un campo de cálculo con el nombreFail or Succeed (Fracaso o éxito) para comprobar si la región alcanzó el objetivo de ventas de una determinada subcategoría o no.
if [Diff]>0 then "Succeed" else "Fail" END
4. Añada Fail or Succeed (Fracaso o éxito) a Columnas, Region (Región) a Filas y Sub-Category (Subcategoría) a Detalle.
5. Añada Sub-Category (Subcategoría) a Columnas.
6. Haga clic con el botón derecho en Sub-Category (Subcategoría) y seleccione Medida > Recuento(Distintos).
1. Cree diferentes campos de cálculo para calcular COUNTD([Sub-Category]) para Succeed (Éxito) y Fail (Fracaso).
Succeed:
if [Diff]>0 then COUNTD([Sub-Category]) ENDFail:
if [Diff]<=0 then COUNTD([Sub-Category]) END2. Cree el campo de cálculo Solution_Fail or Succeed (Solución_Fracaso o éxito) para calcular la suma de Fracaso o Éxito de cada región.
if [Diff]>0 then window_sum([Succeed]) else window_sum([Fail]) END
3. Para el Cálculo de tablas de Solution_Fail or Succeed (Solución_Fracaso o éxito), establezca calcular usando Sub-Category (Subcategoría).
4. Cree el campo de cálculo Filter (Filtro) para que solo se muestre un valor en la vista.
if [Diff]>0 then window_sum([Succeed])=running_sum([Succeed]) else window_sum([Fail])=running_sum([Fail]) END5. Para el Cálculo de tablas de Filter (Filtro), establezca calcular usando Sub-Category (Subcategoría).
001459711

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.