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
PVO1
Helper II
Helper II

Inicio total acumulado / corrida en Zero basado en la segmentación Calender

Hola

Actualmente estoy usando la medida siguiente para calcular mis ventas totales en ejecución. Esto funciona bien, excepto;

Me gustaría volver a calcular el total de ejecución para cada ajuste de segmentación de datos. En este momento comienza el total basado en los últimos resultados, pero me gustaría comenzar en 0.

Por ejemplo,:

Sin ajuste de segmentación (trabajando según lo previsto):

MesSemanaCumSales
11100
12200
13300
14400
21450
22500
23550
24600

Resultados actuales al cortar al mes 2 (no previsto)

MesSemanaCumSales
21450
22500
23550
24600

Resultado deseado al cortar al mes 2

MesSemanaCumSales
2150
22100
23150
24200

CumSales ?
si(
MIN(Cal[Date]) <-CALCULATE(MAX(Sal[Sales date]); all('Sal'));
CALCULATE(SUM('Sal'[Ventas])+0
; FILTRO(ALL(Cal[Date]); Cal[Fecha] <-MAX(Cal[Fecha])))
)

5 REPLIES 5
Greg_Deckler
Super User
Super User

Tenga en cuenta lo siguiente. Por favor, consulte este post sobre cómo obtener su pregunta respondida rápidamente: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Gracias por sus comentarios Greg. Intenté hacerlo más claro con ejemplos en lugar de texto.

Este desafío me llevó todo el día 🙂

¡Creo que lo acabo de encontrar!

CumSales ?
si(
MIN(Cal[Date]) <-CALCULATE(MAX(Sal[Sales date]); all('Sal'));
CALCULATE(SUM('Sal'[Ventas])+0
;FILTRO(ALLSELECTED(Cal); Cal[Fecha] <-MAX(Cal[Fecha])))
)

Comentario desenfadado, pero me salvaste el día!!!

¡Gracias! 🙂

Hola @PVO1

¡Me alegro de haberlo arreglado! por favor, márquelo amablemente como la respuesta para ayudar a otros a encontrarlo más rápidamente. ¡Gracias!

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

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.