Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello and happy thanksgiving for you all,
I am having this issue with this tables and the formula should be:
Solved! Go to Solution.
Hi @parisaranda ,
I build a sample to have a test. Firstly add a calculated column : Rank by Year and Semester.
Rank by Year and Semester = RANKX('Table','Table'[Año]*10+'Table'[Semester],,ASC,Dense)
Measure:
Sum of X table (of this semester) / Sum of X table (of the last semester) =
VAR _THIS_Semester =
CALCULATE ( SUM ( 'Table'[Matriculados] ) )
VAR _LAST_Semester =
CALCULATE (
SUM ( 'Table'[Matriculados] ),
FILTER (
ALL ( 'Table' ),
'Table'[Rank by Year and Semester]
= MAX ( 'Table'[Rank by Year and Semester] ) - 1
)
)
RETURN
DIVIDE ( _THIS_Semester, _LAST_Semester )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @parisaranda ,
I build a sample to have a test. Firstly add a calculated column : Rank by Year and Semester.
Rank by Year and Semester = RANKX('Table','Table'[Año]*10+'Table'[Semester],,ASC,Dense)
Measure:
Sum of X table (of this semester) / Sum of X table (of the last semester) =
VAR _THIS_Semester =
CALCULATE ( SUM ( 'Table'[Matriculados] ) )
VAR _LAST_Semester =
CALCULATE (
SUM ( 'Table'[Matriculados] ),
FILTER (
ALL ( 'Table' ),
'Table'[Rank by Year and Semester]
= MAX ( 'Table'[Rank by Year and Semester] ) - 1
)
)
RETURN
DIVIDE ( _THIS_Semester, _LAST_Semester )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
could you pls provide the sample data and expected output?
Proud to be a Super User!