I have three columns: date, companyID & Users. Below is a sample table:
Date CompanyID Users
2/14/2020 1 20
1/30/2020 1 45
12/30/2019 1 55
What I am looking to do is create a DAX measure, that will look up the previous value. For example:
Date CompanyID Users Pre_value
2/14/2020 1 20 45
1/30/2020 1 45 55
12/30/2019 1 55 0
The date add functions are not working, because my dates are inconsistent. My date column will show today date & the end of month date for previous months.