Forum Discussion

Panto's avatar
Panto
Icon for Helper I rankHelper I
10 years ago
Solved

Stuck with YoY Comparison with XLSX file

Hi guys,   Pretty new to PowerBI, I'm trying to create my first YoY comparison starting from a simple xlsx file.   Despite having read a lot of posts/discussions regarding this topic (and got it ...
  • Vvelarde's avatar
    10 years ago

    You need first a calendar table to use Dax Time intelligence functions. You can do this with calendarauto() function.

     

    Then you can use:

     

    TotalSales=Calculate(Sum([Sales]))

    TotalSalesPreviousyear=Calculate([Totalsales],Sameperiodlastyear(Calendar([Date]))