Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

daily change

so i have the following data   Country/Region casos Mes Día casos por dia Argentina 1054 abril 1   Argentina 1133 abril 2 79 Argentina 1265 abril 3 132 Argentina 145...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi Anonymous 

     

    You will need to make sure that you have one column for Date. I create a sample data model with the following columns:

    • Country
    • Date
    • Amount

    I then created two more columns called DateBefore (which is the previous day's date) and Change (which is the change from previous day). Please see the screenshots below for the DAX expression for those 2 new columns.

     

     

     

    Hope this help!

     

    If I have answered your questions please Accept this post as a solution!