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
Syndicate_Admin
Administrator
Administrator

Subracción requerida dentro de la lógica existente

Hola

Tengo el siguiente cálculo que me proporciona la mayoría de la salida requerida y se puede ver en la tabla a continuación.

SUMX(

Aplicaciones

IF('apps'[app_cat] in {"INT","YTL","NB"} && apps[curr_month_or_after] = "No", "",

IF('apps'[app_cat] in {"INT"} && apps[curr_month_or_after] = "No" ||

'apps'[app_cat] = "INT" && 'apps'[app_type] = 1,

('apps'[cantidad] * apps[app_curr]) / 100,

'apps'[cantidad]))

)

app_catEneFebMarzoAbrilMayoJunioJulioAgoSep
INT1000001200001558002856120000
YTL 5000070000855007500080000
NB 10002000210015001890
VIE 15001500150015001500

Sin embargo, lo que tengo que hacer es donde curr_month = "Sí" (es decir, mayo), entonces necesito un cálculo que diga algo como esto:

SUMA(SI('apps'[cantidad], 'apps'[app_cat] = "YTL" && apps[curr_month] = "Sí"

-

'apps'[app_cat] = "INT" && apps[curr_month] = "Sí"

Entonces la salida de mi tabla debería mostrarse así (cambios en los valores en RED). Entonces, el valor en mayo para app_cat "YTL" tiene un valor reducido para 20000, ya que ese es ese valor en app_cat "INT"

app_catEneFebMarzoAbrilMayoJunioJulioAgoSep
INT1000001200001558002856120000
YTL 3000070000855007500080000
NB 10002000210015001890
VIE 15001500150015001500


¿Alguna idea de cómo podría buscar agregar esta lógica a mi existente, por favor?

0 REPLIES 0

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.