Forum Discussion

elenton's avatar
elenton
Helper II
7 years ago
Solved

Previous Days Orders

Hi I want to get all orders from the previous day.  However if i use now() - 1 it pulls the time in which dosent link on my date table. If i format the date it ends up as a string whcih is inc...
  • parry2k's avatar
    parry2k
    7 years ago

    elenton seems lke you have date dimension in your model, if yes then update measure

     

    Prev day sales = 
    CALCULATE ( SUM( Table[Sales] ), 
    PREVIOUSDAY( Date[Date] ) 
    )