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

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.

Reply
ErikBI
Resolver I
Resolver I

Cree una línea presupuestaria acumulativa a partir del presupuesto con una fecha de inicio y finalización.

Hola a todos,

He estado pensando en esto por un tiempo, pero no soy ni tan conocido como para averiguar cómo hacerlo. ¡Haré todo lo posible para explicarlo!

A continuación se muestra un gráfico en el que muestro los gastos acumulados en azul.

La línea negra (dibujada con pintura MS) es lo que estoy tratando de lograr, que se supone que es la línea presupuestaria.

1 graph.PNG

Mis datos de presupuesto son los siguientes con un precio de presupuesto, una fecha de inicio y una fecha de finalización.

2. budget.PNG

Por lo que entiendo, para lograr esta línea necesito distribuir el presupuesto cada día entre la fecha de inicio y la fecha de finalización, y luego convertir eso en un total corriente. Pero estoy teniendo problemas con esto. ¡No conozco a DAX casi tan bien!

He adjuntado el archivo pbix a continuación. Aquí puedes ver todos los datos que estoy usando.

Example.pbix

Datos de origen

¡Espero que haya una manera de lograrlo! Eso sería fantástico. Si tiene alguna pregunta hágamelo saber!

Salud.

Erik

4 REPLIES 4
v-xuding-msft
Community Support
Community Support

Hola @ErikBI ,

Puede hacer referencia al vídeo y al blog para aprender a difundir la fecha.

Enumere las fechas entre dos fechas en Power Query

Rellene fechas entre fechas con Power BI / Power Query

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Esto parece muy útil. ¡Lo investigaré! Gracias.

Hola @ErikBI ,

¿Se resolvió su problema?

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


amitchandak
Super User
Super User

@ErikBI , Puede consultar este archivo para la asignación

https://www.dropbox.com/s/fnq82ksdzk1lqs3/Target_allocation_daily.pbix?dl=0

ejemplo de acumulativo

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=maxx(date,date[date])))
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(date,date[date] <=max(Sales[Sales Date])))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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