Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

DATEADD function

Greeting lovely members.   i used the function Dateadd and it seems like it's glitching  (im not sure tho) Last year sales = CALCULATE(Fact_Sales[Sales Value],DATEADD(Dim_Date[Date],-1,YEAR))  ...
  • amitchandak's avatar
    4 years ago

    Anonymous , If this is a measure

    Like

    Last year sales = CALCULATE(Sum(Fact_Sales[Sales Value]),DATEADD(Dim_Date[Date],-1,YEAR)) 

     

    or Sales Value is a measure. then your formula

     

    if you need a new column , please share data

    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

     

    Why Time Intelligence Fails - Power bi 5 Savior Steps for TI: https://youtu.be/OBf0rjpp5Hw