Forum Discussion
Anonymous
8 years agoNot applicable
Card with percentage
Good afternoon, I have a table with two columns, Year and percentage. Want to return the highest year's percentage on a card, any ideas?
- 8 years ago
Aha!
I think this might be close. Just change where I have Table2 to your tablename
Measure = VAR maxYear = MAX('Table2'[Ano]) RETURN CALCULATE( MAX('Table2'[Reajustes]), FILTER( 'Table2', 'Table2'[Ano] = maxYear ) )
Anonymous
8 years agoNot applicable
Here is the table I'm using.
The result I need is the 13.55% percentage for the year 2017.
This percentage will always be the most recent year.
Phil_Seamark
Microsoft Employee
8 years agoAha!
I think this might be close. Just change where I have Table2 to your tablename
Measure =
VAR maxYear = MAX('Table2'[Ano])
RETURN CALCULATE(
MAX('Table2'[Reajustes]),
FILTER(
'Table2',
'Table2'[Ano] = maxYear
)
)- Anonymous8 years agoNot applicable
Thank you for your help. Worked perfectly.