Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
erimaz
Frequent Visitor

Excluir valores

Hola

Necesito sumar algunos valores, excluyendo algunas categorías que pertenecen a la misma columna.

Necesito calcular el valor de Confirmar (Columna 2), excluyendo las Etapas de Ventas Ganadas y Perdidas e incluyendo las Etapas de Ventas de Persecución y Negociación (Columna 3). ¿Cómo puedo calcular esto con un ? ¡Gracias!

Aquí está el ejemplo:

ProductoObjetivo vs compromiso vs otrosEtapa de ventasValor
XxxObjetivoBúsqueda12
YyyCometerNegociación14
AaaCometerBúsqueda2
BbbOtroextraviado5
CccCometerWon

6

2 REPLIES 2
amitchandak
Super User
Super User

@erimaz , Tratar como

new Measure = CALCULATE(SUM('Table'[Value]), 
FILTER(Table, Table[Target vs commit vs other] = "Commit" 
  && NOT (Table[Sales Stage] IN {"Won", "Lost Sales"})
  && (Table[Sales Stage] IN {"Pursuit", "Negotiation"}))
  )
camargos88
Community Champion
Community Champion

Hola @erimaz ,

Cree esta medida:

Medidas: CALCULATE(SUM('Table'[Value]); FILTRO('Tabla'; 'Table'[Target vs commit vs other] á "Commit" && NOT 'Table'[Sales Stage] IN 'Won"; "Ventas perdidas"))
Ejemplo con IN :

Medidas: CALCULATE(SUM('Table'[Value]); FILTRO('Tabla'; 'Table'[Target vs commit vs other] á "Commit" && 'Table'[Sales Stage] IN ?"VALUE 1"; "VALOR 2"-))
directquery_sqlserverdb.png

Si lo considera como una solución, marque como una solución y felicitaciones.

Ricardo



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.