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.
Podría haber una mejor solución que IF ELSE, pero me gustaría una medida que me dé la cantidad restante si DimDate[Date] es antes de un valor potencial termination_date, y 0 después de un valor potencial en la fecha de terminación.
Importe restante =
SUM(original_amount) - CALCULATE(SUM(amount), FILTER(ALL('DimDate'),DimDate[Date] <= MAX(Dimdate[Date])))
Estoy luchando porque no puedo hacer que calcule 0 después de la fecha de terminación solo para el case_ids con un termination_date.
Gracias por responderme. Esto funciona cuando filtro en un solo cas_id, pero con varios, tengo dos problemas.
1. La medida "comienza" en 299k, cuando la suma de los dos montos originales es de 150k.
2. El 23/11/2021 la medida debería bajar unos 15K ya que solo pagó 36k de 51k hasta la fecha.
@bareanders84 , Prueba como
Importe restante =
sumx(values(Case[CaseID]) , if(max('Date'[Date]) <= max(Case[temination Date]), SUM(original_amount) - CALCULATE(SUM(amount), FILTER(ALL('DimDate'),DimDate[Date] <= MAX(Dimdate[Date]))), 0))
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 | |
2 | |
1 |