Forum Discussion

imcdonald83's avatar
imcdonald83
Regular Visitor
9 years ago
Solved

Previous date values

Hi Guys   Hoping you can maybe help. Im new to Power BI, and I have been working on some dashboard to help calculate the % shift of sales day on day.    I have got it working to an extent by gett...
  • v-yulgu-msft's avatar
    v-yulgu-msft
    9 years ago

    Hi imcdonald83,

     

    Sorry for my mistake. Rather than a measure, we should create a calculated column using:

    Pre = CALCULATE([Sales],CARDS_DATES_POWERBI[Date]=EARLIER(CARDS_DATES_POWERBI[predate]))

     

    Regards,
    Yuliana Gu