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

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025

ความคิดเห็น • 19

  • @aleksanderstrommer7677
    @aleksanderstrommer7677 2 ปีที่แล้ว +3

    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

  • @dirksmeyers877
    @dirksmeyers877 2 ปีที่แล้ว +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  2 ปีที่แล้ว +1

      Glad you found the content useful

    • @NRLakshmi-yc4tk
      @NRLakshmi-yc4tk 9 หลายเดือนก่อน

      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" )

  • @donjr3270
    @donjr3270 ปีที่แล้ว +7

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

    • @TheKingpro
      @TheKingpro 9 หลายเดือนก่อน

      Same question hereeee

  • @lucianoelias8961
    @lucianoelias8961 5 หลายเดือนก่อน

    You are a ROCK STAR!

  • @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 ...

  • @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 TH-cam Tutorial th-cam.com/video/AGrl-H87pRU/w-d-xo.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

  • @noelsalamante3130
    @noelsalamante3130 2 ปีที่แล้ว

    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 11 หลายเดือนก่อน

    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?

  • @yared7806
    @yared7806 2 ปีที่แล้ว

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

  • @agapheputrasusilo741
    @agapheputrasusilo741 11 หลายเดือนก่อน

    he is explaining clearly but i still dont understand lol

  • @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