I have created one calculated column to find the max by grouping the data by country.But my group by is not working .It is always finding the max of the year(2021) for all the country without considering the country coluumn: My table is below and expected result is in Calculated _Latest Year column :
My Dax formula is below: Calculated _Latest Year = CALCULATE(MAX('MyTable'[Year]),(ALLEXCEPT('MyTable','MyTable'[Country])))
Please help me to fix this