Forum Discussion

LyncoData1's avatar
LyncoData1
Helper I
6 years ago
Solved

Net Sales Start from Yesterday

Hello, I am trying to calculate Sales but I do not want to pull sales from current day. I want to start pulling all sales from prior day on back. I do not know how to manipulate NetSales meaure to do...
  • v-yuta-msft's avatar
    v-yuta-msft
    6 years ago

    LyncoData1 ,

     

    You may modify the measure like pattern below:

    Net Sales =
    CALCULATE (
        SUM ( 'FactNetSales'[Amount] ),
        FILTER ( 'FactNetSales', 'FactNetSales'[Year] < TODAY () )
    )
    

     

    Community Support Team _ Jimmy Tao

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.