Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Conversión de datos agregados a diario

Estoy haciendo algunos análisis sobre Covid 19 casos . El problema es que mi conjunto de datos no muestra nuevos casos cada día, sino el total de casos acumulados hasta la fecha. Para identificar el aumento incremental en los casos cada día creé la meausure a continuación . La medida funciona en algunas filas, pero en ciertas filas no funciona. por ejemplo, el aumento no se calculó como se muestra en la tabla siguiente cuando los casos aumentaron de 59 a 60 o de 60 a 61 y hay muchas otras instancias en las que esto ocurre. ¿Alguien piensa en lo que está ocurriendo aquí?

Hoy en día Casos ?
MAX('Daily Covid -19 Tracker'[Suma de total_cases]) -
CALCULATE(MAX('Daily Covid -19 Tracker'[Suma de total_cases]), FILTER(ALL('Daily Covid -19 Tracker'), 'Daily Covid -19 Tracker'[fecha] á MAX('Daily Covid -19 Tracker'[fecha]) -1) )

Covid Cases 1.png

3 REPLIES 3
parry2k
Super User
Super User

@dwhittak intente cambiar MAX a SUM, tal vez haya dos transacciones en el mismo día

Today Cases =
SUM('Daily Covid -19 Tracker'[Sum of total_cases]) -
CALCULATE(SUM('Daily Covid -19 Tracker'[Sum of total_cases]), FILTER(ALL('Daily Covid -19 Tracker'), 'Daily Covid -19 Tracker'[date] = MAX('Daily Covid -19 Tracker'[date]) -1) )

Me gustaría elogiossi mi solución ayudara.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para dar a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

az38
Community Champion
Community Champion

@dwhittak

¿por qué no usas la solución de aquí https://community.powerbi.com/t5/Desktop/Converting-daily-aggregated-COVID-data-to-an-accurate-Month...

el problema de sus datos es más complicado, tiene muchas columnas diferentes, utilice

Today Cases =
CALCULATE(SUM('Daily Covid -19 Tracker'[Sum of total_cases]), ALLEXCEPT('Daily Covid -19 Tracker', 'Daily Covid -19 Tracker'[Date]) ) -
CALCULATE(SUM('Daily Covid -19 Tracker'[Sum of total_cases]), FILTER(ALL('Daily Covid -19 Tracker'), 'Daily Covid -19 Tracker'[Date] = MAX('Daily Covid -19 Tracker'[Date]) -1) )

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
Anonymous
Not applicable

@az38 Usé una fuente de datos diferente. y aunque su publicación original me ayudó con mi conjunto de datos original, él responde de manera diferente a los nuevos datos. Gracias por su ayuda

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors