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.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
103 | |
101 | |
76 | |
66 | |
60 |
User | Count |
---|---|
142 | |
106 | |
103 | |
85 | |
70 |