Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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!
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
116 | |
101 | |
88 | |
35 | |
35 |
User | Count |
---|---|
152 | |
100 | |
83 | |
63 | |
54 |