Create Last Refresh Time that respects Daylight Saving in Power Query

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

Комментарии •

  • @WilliamHawkins-vp6ze
    @WilliamHawkins-vp6ze 2 месяца назад

    this is going in my saved bookmarks for BI tricks. worked great thank you!

  • @Milhouse77BS
    @Milhouse77BS 2 года назад +3

    Well done. This is cleanest implementation of this I’ve seen. Thanks.

    • @BIGorilla
      @BIGorilla  2 года назад

      Thanks Donald. I feel this should have been implemented by Microsoft in an easy way. But until then, this is one alternative 🚀🚀

  • @GeertDelmulle
    @GeertDelmulle 2 года назад

    Well, this is more complicated than I thought it would be. Thanks for constructing this solution.

    • @BIGorilla
      @BIGorilla  2 года назад

      Thanks Geert. Once you know the trick it’s a relieve that it keeps on working. Feel free to copy-paste the code on my blog if it helps. 🙌

  • @EricHartwigExcelConsulting
    @EricHartwigExcelConsulting 2 года назад +1

    Great Video! I am defiantly going to apply this to my projects.

    • @BIGorilla
      @BIGorilla  2 года назад +1

      Thank you, more on this in the written blogpost gorilla.bi/power-query/last-refresh-datetime/. Enjoy!

  • @fajnefajne4339
    @fajnefajne4339 2 года назад +1

    Hi Rick, thank you for making the formula available on teh blog, easy to copy and use. I have just implemented it and it was so quick. Thank you. It is great.

    • @BIGorilla
      @BIGorilla  Год назад

      Happy to read this!! thanks for sharing

  • @TalhaIslam-f7t
    @TalhaIslam-f7t 7 месяцев назад

    This is great. But I believe this is to handle the last refresh date only.
    I have multiple columns in the dataset that have default data type as Date/Time/Zone and even if I change the data type of the columns to Date, it is changing in the Power BI Service.
    Can we create a function that adjust the timezone for all columns in my dataset? There are a lot of columns in my dataset and I don't want to transform each and every one separately.

  • @cewlac
    @cewlac 21 день назад

    Both Ireland and the Netherlands observe DST.
    During summer, Ireland is GMT and the Netherlands is GMT+1.
    During winter, Ireland is GMT+1 and the Netherlands is GMT+2.
    So the time difference between Ireland and the Netherlands is ALWAYS 1 hour, i.e. the Netherlands is always 1 hour ahead of Ireland.
    How do you explain that the time jumped 2 hours back after the Power BI Service refresh??

  • @Bhavik_Khatri
    @Bhavik_Khatri 2 года назад +1

    Very nice tutorial and learned something new. It would be nice if PowerBI had a function to do it, but I liked your approach.

    • @BIGorilla
      @BIGorilla  2 года назад +1

      Agreed, I too wish they also had a built-in approach. So far this is the best alternative I've found

  • @aleksandarboshevski
    @aleksandarboshevski 2 года назад +1

    What happens for users in different timezones? This will only work for the offset you statically set.
    Is it possible time zone offset to be detected from the user browser and time refresh to be correctly shown to users in different time zones?

    • @BIGorilla
      @BIGorilla  2 года назад +1

      Hey aleksander,
      With the video example it only works statically. If you want a dynamic example based on the user location, I imagine you could build a solution in DAX that uses row level security.
      The row level security table could then use offset values based on the location of your user.
      I may make a video on this at some point :)

    • @aleksandarboshevski
      @aleksandarboshevski 2 года назад

      @@BIGorilla thanks, that could work. For public reports (publish to web) probably we need to look for another workaround since detecting web browser data is not an option.
      btw great videos, keep up with the great work.

    • @BIGorilla
      @BIGorilla  2 года назад

      @@aleksandarboshevski I haven' t found a good solution for that one. There are solutions out there that call to an API to return the correct daylight savings time. However, that one is also bound to the location where your report is refreshed. And with that it does not solve your challenge.

  • @AndreasSchmidt-p6j
    @AndreasSchmidt-p6j Год назад

    Dear Rick, great approach, I've been looking for it for a very long time. I have a similar issue with decimal comma in desktop but decimal point in service. In addition thousand seperator point is changed to comma as well. Do you know if there is a solution for that as well ? Your answer will be highly appriciated. Have a nice day.

    • @BIGorilla
      @BIGorilla  Год назад

      Hi! yes that's frustrating. To change the decimal separator, a user should login to the power bi service , go to settings, look for Display language and change their language settings in the browser. It's a personal setting that you can set.

    • @AndreasSchmidt-p6j
      @AndreasSchmidt-p6j Год назад

      Dear Rick, thanks a lot for your answer, I appriciate it very much !@@BIGorilla

  • @kummithavenkatareddy2302
    @kummithavenkatareddy2302 2 года назад +1

    Excellent video sir, But one question here, Pls clarify me
    I have UTC datetime column which contains dates between 2020 to 2030 ( let's assume ), I have to create one custom column which is offset column for both ( Daylight Saving Time = UTC - 5 && Central Standard Time = UTC - 6 ). How to create that offset column based on UTC timestamp column.
    OR How to create directly a custom column by converting UTC timestamp column to CST and CDT timestamp

    • @BIGorilla
      @BIGorilla  2 года назад

      Same as in the video. Except change the
      DateTimeZone.UtcNow()
      To your DateTimeZone Value in your column. You can take a look at my written post if you like to copy paste it gorilla.bi/power-query/last-refresh-datetime/
      Enjoy!

    • @kummithavenkatareddy2302
      @kummithavenkatareddy2302 2 года назад

      @@BIGorilla But the daylight saving time dates are different for each year right? ( for Year2022 ---> 13.March.2022=

    • @kummithavenkatareddy2302
      @kummithavenkatareddy2302 2 года назад

      @@BIGorilla correct me if i am wrong. Daylight Saving Time ( Also called Central Daylight Time ) starts every year at 2nd Sunday of March at=2 AM and ends before 1st sunday of November 2 AM.

    • @BIGorilla
      @BIGorilla  2 года назад

      @@kummithavenkatareddy2302 The example shown uses mostly the dates. You can easily add the time of 2 AM to it.
      The logic is that wintertime starts the last sunday in October. And summertime the last sunday of march.
      The code for that is in my blog. You only have to adjust it to add the 2AM. I'm sure you'll manage 🙌🏻🙌🏻

  • @i-see_deadlines220
    @i-see_deadlines220 Год назад

    It doesn't work, Your time before refresh was 22:00 hours, after refresh in service you still have 10 pm. I don't think I'm mistaken. But none of my attempts at this resulted in the change. I followed the steps to a T. Has anyone else experience this?

    • @BIGorilla
      @BIGorilla  Год назад

      Hi! Your observation is correct, but the conclusion is not. Here's what happened. I uploaded a file with 22:00 hours. When I refreshed the file in the power bi Service, the time swapped to 20:00 hours because the server refreshes in a different timezone.
      Using the code I provided, you can make sure to always get right time, regardless of the location of the refresh. Hope that clarifies. If it's still unclear, please watch the video again. It is explained in there.
      Thanks,
      Rick