Forum Discussion

RobinW2's avatar
RobinW2
Regular Visitor
9 years ago
Solved

Comparing Daily Trend Year On Year

Hi there,   I hope you're well.  I am new to Power BI and trying to buid a graph that would compare a daily trend for Internet traffic with a month on month comparison.    I used a DAX formula wi...
  • v-micsh-msft's avatar
    9 years ago

    Hi RobinW2,

     

    According to your description, I suppose you are using the following formula to generate the Lastmonth measure?

    Comparison_before := calculate(sum('Table'[comparison]), PARALLELPERIOD('Table'[Date],-1,MONTH))

    Please take a try to switch the PARALLELPERIOD function to DATEADD, then check to see if this would make it work.

    Comparison_before := calculate(

                                              sum('Table'[comparison]),

                                              DATEADD('Table'[Date],-1,MONTH)

                                                 )

    Regards