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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mario1997
New Member

Medida Dax o Columna Calculada para calcular el total acumulado por semestre

Medida Dax o Columna Calculada para calcular el total acumulado por semestre, cual es la mejor opción y que recomendación me podrían dar para tener el total acumulado por semestre apartir de tabala calendario de fecha

2 REPLIES 2
v-kongfanf-msft
Community Support
Community Support

Hi @mario1997 ,

 

You can try below formula to create measure or calculated column to get the cumulative total per semester. 

measure:

Cumulative Total = 
CALCULATE(
    SUM('YourTable'[Amount]),
    FILTER(
        ALL('YourTable'),
        'YourTable'[Semester] <= MAX('YourTable'[Semester])
    )
)

calculated column:

Cumulative Total_ = 
CALCULATE(
    SUM('YourTable'[Amount]),
    FILTER(
        ALL('YourTable'),
        'YourTable'[Semester] <= EARLIER('YourTable'[Semester])
    )
)

 

vkongfanfmsft_0-1735892366291.png

 

Best Regards,
Adamk Kong

 

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

bhanu_gautam
Super User
Super User

@mario1997 ,To calculate the accumulated total per semester in DAX, you can use a measure rather than a calculated column. Measures are generally more efficient for this type of calculation because they are evaluated in the context of the report and can dynamically respond to slicers and filters.

 

Like below

dax
AccumulatedTotalPerSemester =
CALCULATE(
SUM('YourTable'[YourValueColumn]),
FILTER(
ALL('DateTable'),
'DateTable'[Semester] <= MAX('DateTable'[Semester])
)
)

 

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.