Reply
mario1997
New Member
Partially syndicated - Outbound

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

1 ACCEPTED SOLUTION
v-kongfanf-msft
Community Support
Community Support

Syndicated - Outbound

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.

View solution in original post

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

Syndicated - Outbound

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

Syndicated - Outbound

@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






avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)