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 tratando de desglosar una mesa con acumulativos diarios a totales por día, algo como esto:
[acumulativo de hoy] - [acumulativo de ayer] [total de hoy]
Estoy usando este json como fuente: https://data.rivm.nl/covid-19/COVID-19_aantallen_gemeente_cumulatief.json
Soy bastante nuevo en Power BI Desktop y no pude encontrar los recursos adecuados para responder a mi pregunta.
Así que se agradecería algo de ayuda.
Hola @Fred010 ,
¿Tiene sentido? Si es así, marque amablemente la respuesta adecuada como una solución para ayudar a otros que tienen el problema similar y cerrar el caso. Si no, avísame y trataré de ayudarte más.
Saludos
Amy
Hola @Fred010 ,
Puede crear una medida como DAX a continuación.
total of today=CALCULATE(SUM(Table1[sale]),FILTER(ALLSELECTED(Table1), Table1[Date] =TODAY()))
Saludos
Amy
Equipo de apoyo a la comunidad _ Amy
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
¿Cuál es la salida esperada?
Si desea obtener el total hoy, ¿por qué no calcular el total de hoy directamente?
totaltoday = CALCULATE(sum('COVID-19_aantallen_gemeente_cumulatief'[Total_reported]),FILTER('COVID-19_aantallen_gemeente_cumulatief',DATEVALUE('COVID-19_aantallen_gemeente_cumulatief'[Date_of_report])=today()))
Proud to be a Super User!
@Fred010 , con tabla de fechas.
Manera de obtener el último día, continuo o no continuo - Medir
Last Day Non Continuous = CALCULATE([sales],filter(ALLSELECTED('Date'),'Date'[Date] =MAXX(FILTER(ALLSELECTED('Date'),'Date'[Date]<max('Date'[Date])),'Date'[Date])))
Day behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Day))
Diff COlumn = datediff(maxx(filter(Table,Table[Date]<earlier(Table[Date]) && Table[Numberf]= earlier(Table[Numberf]) ),Table[Date]) ,Table[Date],Day)
Last Day = CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Last Day = CALCULATE(sum('order'[Qty]), previousday('Date'[Date]))
Este día: CALCULATE(sum('order'[Qty]), FILTER(ALL('Date'),'Date'[Date]-max('Date'[Date])))
O
sum('orden'[Cantidad])
Tome una diferencia de los dos
Forma de columna
Last Sales Date á maxx(FILTER(Sales1,Sales1[Sales Date] ?EARLIER(Sales1[Sales Date])-1),Sales1[Sales Date])
Last Non Cont Sales Date (Fecha de las últimas ventas no cont) a var _max (n.o) a maxx(FILTER(Sales1,Sales1[Sales Date] < EARLIER(Sales1[Sales Date])),Sales1[Sales Date])
return maxx(FILTER(Sales1,Sales1[Fecha de venta] _max),Sales1[Qty])
Refiera esto
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |