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
Estoy calculando la suma acumulada a finales del mes pasado. Solo considero los meses que se han ido (no el mes actual). He desarrollado la medida que se parece a la siguiente:
Hola @leo_89 ,
Puede deberse a que la función EOMONTH está mal. Tratar
Var last_month_date - EOMONTH(EOMONTH(TODAY(),0),0)
Referencia: EOMONTH DAX
Si no respondo a la pregunta, por favor proporcione algunos datos de muestra, que serán muy útiles para mí para ayudarle.
Saludos
Stephen Tao
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
@v-stephen-msft , la instrucción modificada produce la fecha de finalización del mes actual no el último mes.
@leo_89 , Probar como
Var last_month_date = EOMONTH(TODAY(),-1)
var CurrentDate = MAX('Table'[Actual Incident Start Time ])
Return
sumx(
filter(ALL('Outages and Interruptions'),'Outages and Interruptions'[Actual Interruption Start Time (NZST)]<=CurrentDate && 'Outages and Interruptions'[Actual Interruption Start Time (NZST)<=last_month_date ), [sum_measure])
Proporcione sus comentarios y consejos para nuevos videos
Tutorial Series Dax Vs SQL Direct Query PBI Consejos
Apreciamos tus Felicitaciones.
@amitchandak, mi medida es la siguiente:
Como se puede ver que todavía muestra el valor de septiembre y octubre.
a) var last_month_date = EOMONTH(TODAY(), -1)
-- gives last month date. (9/30/2020)
-- Minor, FYI, nothing is wrong in your code ... more of FYI
b) Cumulative Sum calc - Try this
Cumulative sum =
var last_month_date = EOMONTH(TODAY(),-1)
Return Calculate (
SUM( [sum_measure])
, filter(
ALL('Outages and Interruptions'[Actual Interruption Start Time (NZST)])
,'Outages and Interruptions'[Actual Interruption Start Time (NZST)]
<= last_month_date ))
Mi razón para cambiar la fórmula: sospechar ALL('Outages and Interruptions') está mal
y también, A <-B y B <-C es igual a A <-C
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 |