Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

How to create a column for Previous Value

Hi All,    Expected Output: Workitem ID State  Previous_State 1001 backlog   1001 Inprogress Backlog 1001 Done Inprogress 2001 backlog   2001 Inprogress Backlog 20...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Sure, Under transform data >click add column >index column from 1

     

     

  • DataNinja777's avatar
    2 years ago

    Hi Anonymous 

     

    There are multiple ways to produce you required output, and one of them is as follows:

    Create index dimension table which also has previous row side by side.  

    Create a relationship between your index dimension table and your fact table.  

    Create a calculated column which produces your required output like below:

    I attach an example pbix file.  

    Best regards,