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
naoyixue1
Post Patron
Post Patron

Necesita una ayuda - Calcular el total de ejecución en el nivel de artículo mes tras mes

Hey todo,

Sé cómo hacer el cálculo acumulativo al poner la fecha en la fila. Pero esta vez, necesito calcular el total en ejecución en el nivel de elemento (fila) mes a mes (columna)

Vea el ejemplo siguiente. las demandas acumulativas 2020-08 deben ser 44 para el producto A. Teniendo en cuenta que las demandas 2020-09 es 103, por lo que las demandas acumulativas para finales de 2020-09 deben ser 147...

Este es mi dax, pero no es correcto 😞 ¿Me harías saber tus pensamientos? ¡Gracias!

Demandas acumulativas : CALCULATE(CALCULATE([Demands],FILTER(ALLSELECTED('Date'[Date]),'Date'[Date]<'MAX('Date'[Date]))),FILTER(ALL('Fact'),COUNTROWS(FILTER('Fact',EARLIER('Fact'[Item])'Fact'[Item] && EARLIER('Fact'Date[])))

naoyixue1_0-1600832856245.png

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@naoyixue1 , Probar como

Demandas acumulativas : CALCULATE([Demands],FILTER(ALL('Fact'),COUNTROWS(FILTER('Fact',Max('Fact'[Item])'Fact'[Item] && MAX('Fact'[Date])'Fact'[Date])))

O

Demandas acumulativas:CALCULATE([Demands],FILTER(ALLSELECTED('Date'[Date]),'Date'[Date]<'MAX('Date'[Date])),FILTER(ALL('Fact'),COUNTROWS(FILTER('Fact',Max('Fact'[Item])'Fact'[Item] )))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@naoyixue1 , Probar como

Demandas acumulativas : CALCULATE([Demands],FILTER(ALL('Fact'),COUNTROWS(FILTER('Fact',Max('Fact'[Item])'Fact'[Item] && MAX('Fact'[Date])'Fact'[Date])))

O

Demandas acumulativas:CALCULATE([Demands],FILTER(ALLSELECTED('Date'[Date]),'Date'[Date]<'MAX('Date'[Date])),FILTER(ALL('Fact'),COUNTROWS(FILTER('Fact',Max('Fact'[Item])'Fact'[Item] )))

Gracias @amitchandak en ambos sentidos trabajo. Realmente apreciamos tu esfuerzo.

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.