March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
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
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])
)
)
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.
@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])
)
)
Proud to be a Super User! |
|
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
81 | |
63 | |
54 | |
42 |
User | Count |
---|---|
194 | |
106 | |
90 | |
63 | |
51 |