Forum Discussion

tc97's avatar
tc97
Frequent Visitor
4 years ago
Solved

Calculated Column - DATEDIFF - Days Since Promo Start

Hi,  I have two tables - one for sales, and one for promotions we run.    Sales table includes following columns: OrderID OrderDate PromoCode OrderValue   Promotions table consists of ...
  • tamerj1's avatar
    4 years ago

    Hi tc97 
    Please try

     

    PromotionDay =
    DATEDIFF ( RELATED ( Promotions[PromoStartDate] ), Sales[OrderDate], DAY )