Power BI: Year to Date Comparison for Current vs. Prior Year 📅

Поділитися
Вставка
  • Опубліковано 21 сер 2024

КОМЕНТАРІ • 18

  • @donjr3270
    @donjr3270 Рік тому +5

    Hi Avi, what if you have multiple past years, i.e 2017, 2018, 2019 and 2020?

    • @TheKingpro
      @TheKingpro 4 місяці тому

      Same question hereeee

  • @dirksmeyers877
    @dirksmeyers877 Рік тому +4

    Hi Avi, Thanks a lot for your video! It is very useful!! However, I had still a problem like today: November 1st. At this day I don't have the data of sales yet, but Sales Prior Year YTD calculates the data already of november. So my result was still biased for today. So instead of taking 'Calendar'FutureDate = "Past", I take now Calendar[MonthNum]

    • @PowerBIPro
      @PowerBIPro  Рік тому +1

      Glad you found the content useful

    • @NRLakshmi-yc4tk
      @NRLakshmi-yc4tk 4 місяці тому

      Hi @dirksmeyers877 ,
      If you are using the Calendar provided by Avi, you can recreate the Future Date value to be past after the end of the day. = Table.AddColumn(#"Added CurYearOffset", "FutureDate", each if [Date] > = CurrentDate then "Future" else "Past" )

  • @aleksanderstrommer7677
    @aleksanderstrommer7677 2 роки тому +2

    I was asked to do this today and you delivered!

  • @ArgenisChaffardet
    @ArgenisChaffardet 2 роки тому +1

    Excellent, I had this problem years ago in Excel, now with Power BI is another thing, Great tip. Thanks for sharing

  • @dcpowered
    @dcpowered 2 роки тому +1

    The download link for the PBIX file related to this video is missing from your website! Also, where to find the advanced video about building the forecasted chart? That should be part 2 to this video! Thanks for the help!

  • @andrewvillamor5478
    @andrewvillamor5478 2 роки тому

    Excellent video as usual from one of the masters! Thank you.
    Could I know how did you do your calendar table though?

  • @ofeliajesus2385
    @ofeliajesus2385 Рік тому

    Thank you the video is handy... I am trying FutureDate and curYearOffset and I am facing a problem the curYearOffset is filtering the current year how can I see the data from the previous ? ... but you don't have this problem in your sample ...

  • @noelsalamante3130
    @noelsalamante3130 Рік тому

    How do I this if I'm comparing current YTD to Prev Yr Ytd and 2 Yrs ago YTD? Sameperiodlastyear adds the 2 previous years together. Thanks!

  • @rezag.7349
    @rezag.7349 5 місяців тому

    Why a Power Query Calendar table and not a DAX calendar table? Looking at Singh's Ultimate Calendar table the start date is hard coded (StartDate = #date(2014, 1, 1) ). Is that not a limitation compared to DAX Calendar() ?!

  • @chrisfotoglidis437
    @chrisfotoglidis437 2 роки тому

    Iam a follower and i find your content intersting.
    What about this....
    Calculate ([Sales],Dateadd(datesytd(),-1,year))
    This could work?

  • @stevewasil2321
    @stevewasil2321 2 роки тому

    how do you show the variance betweeen ytd and prior ytd?

    • @PowerBIPro
      @PowerBIPro  2 роки тому

      Hey Steve, once you have both measures defined, you can just create another measure using the two. I call this the 'Lego Block' approach to building measures. You may see some examples of this in my UA-cam Tutorial ua-cam.com/video/AGrl-H87pRU/v-deo.html and full details on using DAX inside my training program www.learnpowerbi.com/training
      And if you have any additional questions or help join our live events:
      👉 www.TalkPowerBI.com
      Power On! / Avi

  • @yared7806
    @yared7806 Рік тому

    I need the context of this. I don't know what data you are using.

  • @abhishekkabade8738
    @abhishekkabade8738 2 роки тому

    I have "intel core 2Duo 2.33GHz" Windows 8.1pro,,, i install power Bi but facing some problems to open,,,sir please help

  • @agapheputrasusilo741
    @agapheputrasusilo741 5 місяців тому

    he is explaining clearly but i still dont understand lol