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.
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_cat | Ene | Feb | Marzo | Abril | Mayo | Junio | Julio | Ago | Sep |
INT | 100000 | 120000 | 155800 | 28561 | 20000 | ||||
YTL | 50000 | 70000 | 85500 | 75000 | 80000 | ||||
NB | 1000 | 2000 | 2100 | 1500 | 1890 | ||||
VIE | 1500 | 1500 | 1500 | 1500 | 1500 |
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_cat | Ene | Feb | Marzo | Abril | Mayo | Junio | Julio | Ago | Sep |
INT | 100000 | 120000 | 155800 | 28561 | 20000 | ||||
YTL | 30000 | 70000 | 85500 | 75000 | 80000 | ||||
NB | 1000 | 2000 | 2100 | 1500 | 1890 | ||||
VIE | 1500 | 1500 | 1500 | 1500 | 1500 |
¿Alguna idea de cómo podría buscar agregar esta lógica a mi existente, por favor?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |