Could you please help with  NPS% by each area calculation.
 Promoter %  Calculation as : sum([Promoter])/[Total no of results]*100
NPS%=[Promoter%]- [Detractor%]
latest Year calculation as :  {max(YEAR([Date]))}
Prior year calculation as : {max(YEAR([Date]))}-1
latest year NPS% calculation as:    AVG(If year([Date]) =[latest year] then {[NPS%]} else 0 end) 
Prior year NPS% calculation  as :    AVG(If year([Date]) =[Prior Year] then {[NPS%]} else 0 end)
I am getting NPS% as % total of all areas (table down cal). I am not getting correct NPS% by each individual Areas .I tried different table calculations and LOD function but none of them worked.
Requirements is to have data visualize in below table format only.
    
| Areas | no. of respondents | % of respondents | 2018 | 2019 | Var | Q3/18 | Q4/18 | Q1/19 | 
| Practice | 5000 | 10 | 84.2 | 80 | 4.2 |  |  |  | 
| Inp | 5000 | 10 | 80.8 |  |  | 83.9 | 50.0 |  | 
| Total | 50000 | 100 | AVG | AVG |  |  |  |  | 
Here is the format of data of one question where I have summarize responses as number of results(it's dummy data)   
| Area | NPS Category | no of results | date | 
| Practice | Promoter | 50 | 1/1/2018 | 
| Emr | Promoter | 150 | 1/2/2018 | 
| Testing | Promoter | 4000 | 1/3/2018 | 
| Inp | Promoter | 300 | 3/1/2018 | 
| OPS | Promoter | 2000 | 3/2/2018 | 
| OpR | Promoter | 50 | 5/3/2018 | 
| Practice | Promoter | 20 | 4/4/2018 | 
| Emr | Detractor | 480 | 6/5/2018 | 
| Testing | Detractor | 100 | 6/6/2019 | 
| Inp | Detractor | 13 | 7/7/2019 | 
| OPS | Detractor | 1000 | 8/8/2019 | 
| OpR | Detractor | 25 | 9/9/2019 | 
| Practice | Detractor | 45 | 8/10/2019 | 
| Emr | Passive | 700 | 2/11/2019 |