Forum Discussion

GRCzz's avatar
GRCzz
Regular Visitor
3 years ago

How to compare %change between two column

Dear Expert,

 

please kindly help with the detail below.

 

I need to compare the %change between the year and the previous year's total amount and separate it by VendorID in power bi desktop

 

my raw data as the table below

 

VDCODEyear total_amt 
A20152,444,251.50
A20164,061,466.82
A20171,305,996.76
B20161,095,057.60
B20171,349,614.27
B20181,441,647.36
B20191,447,807.68
B20201,385,420.64
B2021339,678.72
C20173,743,832.60
C20184,726,414.90
C20193,552,500.57
C20203,349,852.49
C2021886,912.76

 

Expected result 

 

 

thank you 

 

1 Reply