Forum Discussion

savanahubio's avatar
savanahubio
Frequent Visitor
8 years ago
Solved

YOY - Monthly & Weekly Comparison

Here is what I need - for both Monthly & Weekly view. My data source is line item data so I am able to get the YoY comparison

 

  • sgsukumaran's avatar
    sgsukumaran
    8 years ago

    You can try creating a calculated column

     

    LY Sales = CALCULATE([Total Sales], DATEADD(Orders[Order Date],-1,YEAR))

     

    or

     

     LY Sales = CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Orders'[Order Date]))

     

     

  • savanahubio's avatar
    savanahubio
    8 years ago

    I found a way to get the results I needed. 

     

    I created 2 columns

    2016 Dollar Sales =IF(Daily Sales Date Year = 2016, Dollar Sales) 

    2017 Dollar Sales =IF(Daily Sales Date Year = 2016, Dollar Sales) 

     

    Use Quick Measure - Percentage Difference.

     

    Used 2016 Dollar Sales! It worked! I did this for Dollar Sales & Unit Sales

4 Replies

  • v-caliao-msft's avatar
    v-caliao-msft
    Microsoft Employee

    savanahubio,

     

    It's hard to understand your requirement based on your description. Please provide us more information about your report, so that we can make further analysis. You can upload a pbix file to Onedrive or any web storage and share the link. Do mask sensitive data before uploading.

     

     

    Regards,
    Charlie Liao

     

     

      • sgsukumaran's avatar
        sgsukumaran
        Resolver II

        You can try creating a calculated column

         

        LY Sales = CALCULATE([Total Sales], DATEADD(Orders[Order Date],-1,YEAR))

         

        or

         

         LY Sales = CALCULATE([Total Sales], SAMEPERIODLASTYEAR('Orders'[Order Date]))