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
Paulyeo11
Impactful Individual
Impactful Individual

¿Cómo agregar condición a REVENUE_C campo?

Hola a todos

¿Puede alguien ayudarme a agregar condición al nombre de campo REVENUE_C

La condición :-

COMPETIDOR - APPLE

Ahora utilizo el filtro para seleccionar COMPETITOR-APPLE

El guión debe ser algo como :-

suma (COMPETITOR-APPLE,REVENUE_C)

Paulyeo11_0-1603099826773.png

MI ARCHIVO pbi :-

https://www.dropbox.com/s/2llpdyogghapan3/SI_TS%2010-%20RECORD%20VER001%20SOLUTION.pbix?dl=0

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Paulyeo11 , Pruebe una medida como

sumX(filter(Table,Table[COMPETITOR]-"APPLE"),Table[REVENUE_C])

View solution in original post

7 REPLIES 7
amitchandak
Super User
Super User

@Paulyeo11 , Pruebe una medida como

sumX(filter(Table,Table[COMPETITOR]-"APPLE"),Table[REVENUE_C])

NamishB
Post Prodigy
Post Prodigy

Hola @Paulyeo11

Por favor, intente

Rev_C_SUM: CALCULATE(SUM(COMPETITOR[REVENUE_C]),FILTER(COMPETITOR, COMPETITOR[COMPETITOR]- "Apple"))
Salud
Namish B
Paulyeo11
Impactful Individual
Impactful Individual

Hola Namish

Intento copiar su script a mi archivo PBI, se muestra nulo. ¿Puedes compartir conmigo usando el enlace anterior?

Paulyeo11
Impactful Individual
Impactful Individual

Hola Namish

Su también es trabajo, espero que yo use el año para X Axis , ahora uso date_t para el eje X funciona bien ahora.

Gracias por compartir, agradeció mucho

@Paulyeo11

Cree una nueva medida y utilice la siguiente fórmula:

Revenue = CALCULATE(SUM(COMPETITOR[REVENUE_C]), COMPETITOR[COMPETITOR] = "Apple")
Anonymous
Not applicable

@Paulyeo11

Puede cambiar las columnas en negrita respectivas con sus datos

calc - CALCULATE(sum(Orders[Profit]),ALLSELECTED(Orders[Customer Name]))

¿Esperamos que resuelva su problema? Por favor considere aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.


Apreciamos sus Felicitaciones, Pulse el botón pulgares hacia arriba !! 👍

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.