Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

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?
  • Phil_Seamark's avatar
    Phil_Seamark
    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
    					)
    				)