How do you get a REFRESH DATE in your Power BI report???

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

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

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

    Yep, doing this as a common practice in my reports for the same reason as you describe. To show what the last refresh time was to the end user, but also to make it easier to detect refresh failures.

  • @brycebarth
    @brycebarth 4 ปีที่แล้ว +11

    I prefer to have the date shown when my data was last modified. Having a refresh date doesn't tell me much if the data driving it hasn't changed. So, in the query editor, we bring in the folder where the data source file is stored, filter for the correct file, then use the date modified.

  • @TM-nj6vd
    @TM-nj6vd 4 วันที่ผ่านมา

    This was a great video and helped me a lot. I know nothing about Power Bi but need to teach myself a few things for work tasks. Tried to use Copilot/AI to learn how to do a refresh but couldn’t get it to do what I wanted. Your video solved it quickly and I feel like I understand Power BI just a tiny bit better

  • @leighnb1984
    @leighnb1984 3 ปีที่แล้ว +6

    Is it possible to get the next schedule refresh date for a report based on the schedule refresh times defined in the powerbi service?

  • @MonkeyWoodworks
    @MonkeyWoodworks 3 ปีที่แล้ว +10

    Hey Guy in a Cube. You have some great videos! I am just getting my feet wet in PowerBI and these are super useful. On this particular topic, this works great only when you have a published page, the published page uses a completely different timezone than my desktop apps does. Is there a way to FORCE a timezone in that date capture so both the desktop app and the published page keep the same timezone?

  • @lancecassemis6806
    @lancecassemis6806 2 ปีที่แล้ว +1

    Thanks so much. I would say they only thing to improve on would be to change the category label to larger text size, rename table to "refreshed date" and change field from last to first such that it reads " Last Refreshed Date"

  • @cyberblitz
    @cyberblitz 4 ปีที่แล้ว +15

    Humm, I tried this but as soon as I put my dashboard on the Power Bi Server, it used the date the server was using, which is in a different country. How would you approach this situation?

    • @tausifsheikh1722
      @tausifsheikh1722 ปีที่แล้ว +1

      Have you got the solution for this?

    • @HebertAG
      @HebertAG 3 หลายเดือนก่อน

      I went with UTC time and then add or substract your time zone

  • @mikeycbd
    @mikeycbd ปีที่แล้ว

    Thank you from Melbourne Au. Only been using PowerBI about a year and believe I need to show my audience when the data was refreshed. Very easy to follow, thanks again. Mikey Mike

  • @felipescherer6678
    @felipescherer6678 ปีที่แล้ว

    Very good to have this KPI to show last refresh time especially if the users access the Reports in PowerBI services web page

  • @DitchChickenAdventures
    @DitchChickenAdventures ปีที่แล้ว +1

    You guys are amazing. Just learning Power BI and you have made life so much better

  • @ChrisWagnerDatagod
    @ChrisWagnerDatagod 4 ปีที่แล้ว +8

    Love this! Truly a best practice.

    • @GuyInACube
      @GuyInACube  4 ปีที่แล้ว +1

      Agreed! So many people don't have something like this though. :(

    • @ChrisWagnerDatagod
      @ChrisWagnerDatagod 4 ปีที่แล้ว

      @@GuyInACube Say it ain't So!!!

  • @ncbshiva
    @ncbshiva 4 ปีที่แล้ว +26

    If i publish this to the service, then i get the Datetime of the refresh in UTC time. How can i get the last datetime refresh of my time zone ?

    • @Adi_7004
      @Adi_7004 4 ปีที่แล้ว +2

      Presuming that you are looking for IST. Adding 5 n half hours to date.localnow() should do the job if you are not worried much about the time displayed in PBI desktop.
      But I believe a better approach should exist

    • @ZigBaird
      @ZigBaird 4 ปีที่แล้ว +5

      Our company has locations all over the US so I just report everything in EST and instead of using Adam's approach, I just create a datasource that queries the GETDATE() of our SQL server and return that in our model . Not sure of your datasource but that might help you or others.

    • @joaoluismartins
      @joaoluismartins 4 ปีที่แล้ว +6

      Hey Shiva, you can use the following code:
      Source = DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),-3,0), where "-3" is the difference between your timezone and UTC timezone.

    • @ncbshiva
      @ncbshiva 4 ปีที่แล้ว +4

      @@joaoluismartins Thanks , but if my time zone follows Day Light Saving then this solution might not work.

    • @ncbshiva
      @ncbshiva 4 ปีที่แล้ว +2

      @@Adi_7004 Thanks , but if my time zone follows Day Light Saving then this solution might not work.

  • @boydbarnwell138
    @boydbarnwell138 4 ปีที่แล้ว +3

    Followed these instruction exactly and it worked great. What about correcting for time zone? How do I modify the invoked function so my app agrees with the refresh schedule I set in the app.

  • @stephenc7077
    @stephenc7077 3 ปีที่แล้ว +8

    This is great, except when you have people from across various different time zones looking at a report. The "Local Now" of the server (in our case) is UTC. How do I get that value to translate to the logged in user's time. I'm guessing it's not possible given that when I put a simple measure of SimpleTime=NOW() and I display that as a card, it's coming up as the server's local time. Whereas when I do this on my desktop, the NOW() shows as the local time and UTCNOW() shows the UTC (I know, under redundant see redundant).
    I have users in all 4 US timezones so I really can't do an offset at this point.

    • @JeremyCooperIsAwesomeSauce
      @JeremyCooperIsAwesomeSauce 3 ปีที่แล้ว +4

      Standing by for an answer on this one. Same issue here.

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

      @@JeremyCooperIsAwesomeSauce Ever find an answer to this?

    • @holt59454
      @holt59454 ปีที่แล้ว

      @@dougnichy7018 same issue here, anyone resolved this ?

  • @Preteshd
    @Preteshd 3 หลายเดือนก่อน

    Thank you, just used this in my report. Very useful.

  • @tjarbeaux8662
    @tjarbeaux8662 3 ปีที่แล้ว +1

    Needed a quick answer and you delivered! Exactly, what i needed.

  • @KasiaWichrowska93
    @KasiaWichrowska93 4 ปีที่แล้ว +5

    Great video, so simple yet so powerful! Thanks for sharing!

  • @paulwhite3336
    @paulwhite3336 7 หลายเดือนก่อน

    So good when you can find the exact answer to your precise question, thanks!

  • @twitchingmind
    @twitchingmind 3 ปีที่แล้ว +1

    This saved my life thank you!

  • @heatherr5191
    @heatherr5191 4 ปีที่แล้ว +3

    My approach (working with a database of sales data that refreshes overnight) is to instead report the last invoice date from my report. But I will definitely keep this in mind for other applications.

    • @GuyInACube
      @GuyInACube  4 ปีที่แล้ว +1

      Yup, that is another great way to do it. Depends on what you want to see. When the model was actually last refreshed, regardless of the data inside, or the last current record you have within the data. Or, maybe both :)

  • @NathanProctor-pj1wz
    @NathanProctor-pj1wz 9 หลายเดือนก่อน

    Simple and direct, this is why you're the best. Thank you

  • @arklur3193
    @arklur3193 4 ปีที่แล้ว +4

    If I start the refresh at 10:00:00 and the refresh ends at 11:00:00, the table will have a close value to 10, right? Something like 10:00:02 or so. How could I achieve to get the end time, or something close to it?

    • @mcnater
      @mcnater 4 ปีที่แล้ว

      My organization just asked me this exact question. If the report runs long...what is the ACTUAL time that shows?

    • @StephenEngine
      @StephenEngine 4 ปีที่แล้ว

      Depending on how exact users want to see the last refresh date/time, maybe it's worth finding the average time of a refresh and then add that time average to the current date/time M language function. Just a thought and may not work but it's an option.

    • @sebastienderivaux386
      @sebastienderivaux386 4 ปีที่แล้ว

      Maybe you can make the time query depend on your slow query.

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

    Thanks, you've saved me a heap of research to get this working.

  • @priscillabatterie347
    @priscillabatterie347 3 ปีที่แล้ว +1

    Thank you so much. Your videos are extremely helpful and straight to the point.

  • @shauryamittal3041
    @shauryamittal3041 4 ปีที่แล้ว +1

    Hi @guyinacube, I use a calculated col in my report just create a col and enter UTCNow() function to get the date time in utc, now to show the time zone i just concatenate this function with " UTC" string and now they know when their data was last refreshed.

    • @GuyInACube
      @GuyInACube  4 ปีที่แล้ว

      That is another way to do it. I usually try and push things as far back as I can. But, assuming it is by itself, that may not have a lot of overhead from a calculated column perspective.

    • @scottschuler2234
      @scottschuler2234 4 ปีที่แล้ว

      @@GuyInACube The issue with that approach happens in the service when an end user hits the refresh button and the DAX calculates but the data isn't actually refreshed. Power Query is the only way outside the metadata in the new app experience

  • @jamesparker2511
    @jamesparker2511 ปีที่แล้ว

    This was awesome. Thank you so much for this video.

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

    One thing that would be cool is to see how to create a timestamp in your report that shows the last time a Dataflow/set has refreshed, not necessarily the report itself

  • @megcrossland
    @megcrossland 4 ปีที่แล้ว +1

    Love it. I have learnt everything I know from you guys. Thanks a bunch.

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

    Hey, thanks for the tip. One problem of publishing this to Power BI Online is that Power BI Online only works on coordinated universal time (UTC). It will change your local time zone whatever you do. So for Europeans with summer/winter time zone it is a pain to work with.

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

      th-cam.com/video/xOj7KNqe_cI/w-d-xo.html

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

      Any trick to overcome this ?

  • @alfonsocoffman788
    @alfonsocoffman788 4 ปีที่แล้ว

    Excellent, so much better than the online solution that always crashes!

  • @HammadKhan-lu3yb
    @HammadKhan-lu3yb 4 ปีที่แล้ว

    yeah i think this is the better solution to find the refresh issue. Appreciated

  • @rayanedaluz303
    @rayanedaluz303 10 หลายเดือนก่อน

    Loved the video!!!!! Thanks a lot

  • @ramendrakumar2834
    @ramendrakumar2834 4 ปีที่แล้ว +3

    Hi Adam, It only shows UTC date time in power bi service.
    Pls suggest how to change time zone for IST and other time zones

    • @ducminh7568
      @ducminh7568 3 ปีที่แล้ว

      the only way I found it extract from the time website.

    • @danielsiffredi8403
      @danielsiffredi8403 3 ปีที่แล้ว

      @@ducminh7568 can you please share how do you do that? I'm still stuck with UTC date time and I don't like it. thanks!

    • @ducminh7568
      @ducminh7568 3 ปีที่แล้ว

      @@danielsiffredi8403 nah they way i did is extract data via website option in Power Bị and find any time website on the internet

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

    This is great, short and to the point, Thanks.

  • @flaviooliveira3492
    @flaviooliveira3492 4 ปีที่แล้ว +1

    Congrats, man, exactly I was needing!

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

    So simple - so helpful. Great!

  • @NabranAboubacar
    @NabranAboubacar ปีที่แล้ว

    Nice tips, easy to apply. Thx

  • @dominiquederoeck8100
    @dominiquederoeck8100 ปีที่แล้ว

    The KISS method: Keep It Simple and Straight. Thanx!

  • @stefankal77
    @stefankal77 2 ปีที่แล้ว +1

    great and easy ! thanks

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

      BAM! Thanks for watching! 👊

  • @joaoluismartins
    @joaoluismartins 4 ปีที่แล้ว +10

    Hey Guys,
    For those who are struggling with the UTC time of the Refresh inside the Service, a good approach is to use the code below:
    Source = DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),-3,0), where "-3" is the difference between your timezone and UTC timezone.

    • @nathannoel9837
      @nathannoel9837 3 ปีที่แล้ว +1

      Thank you. Made things a lot easier on me. :)

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

      This step should be included in the video. This was key!

    • @williamrodriguez2694
      @williamrodriguez2694 3 ปีที่แล้ว

      I don't think this accounts for daylightsaving (in the US)

  • @ExcelWithChris
    @ExcelWithChris ปีที่แล้ว +1

    If you do this on the local machine, updated and upload I assume it will work. but will it still work once you publish and updates run on the service and not from you local machine?

    • @sonal008
      @sonal008 10 หลายเดือนก่อน

      It doesn't work on Power BI service

  • @Anthony_Lecoq
    @Anthony_Lecoq 3 ปีที่แล้ว

    That was a great tips, thanks Adam

  • @arunmarkrajan6626
    @arunmarkrajan6626 3 หลายเดือนก่อน

    Thank You Sir

  • @RicardoMurgas
    @RicardoMurgas 4 ปีที่แล้ว +1

    This is amazing! You just saved me. Thank you very much.

  • @brigadeanalytics3737
    @brigadeanalytics3737 ปีที่แล้ว +1

    What about displaying the NEXT scheduled refresh date. This information is available in the Power BI Service when you have Scheduled Refresh times selected. I'm just wondering if you can display something similar in Power BI Desktop.

  • @estelalarios
    @estelalarios 6 หลายเดือนก่อน

    very useful, thanks a lot for this video

  • @fredatang4058
    @fredatang4058 6 หลายเดือนก่อน

    so helpful, thank you so much.

  • @barca06
    @barca06 3 วันที่ผ่านมา

    thank you!

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

    Thank you for this!

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

    Nice video. Keep up the great work guys

  • @Adi_7004
    @Adi_7004 4 ปีที่แล้ว +3

    Thanks for the video. It is pretty much a common requirement to display the latest refresh time . Do we need to Add/Subtract the time from UTC time to display MY local timestamp in Power BI service?
    Is there any better approach to achieve this?

    • @stick7646
      @stick7646 4 ปีที่แล้ว +1

      Try DateTimeZone.FixedLocalNow()

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

    You guys rock!

  • @annalisekerr7796
    @annalisekerr7796 3 ปีที่แล้ว

    Simple and very useful, thank you

  • @garciarogerio6327
    @garciarogerio6327 6 หลายเดือนก่อน

    Nice one. Thank you

  • @shashwattiwari1991
    @shashwattiwari1991 6 หลายเดือนก่อน

    Very nice video thanks !!!

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

    Nice! Thank you.

  • @temuulenchoi
    @temuulenchoi 4 ปีที่แล้ว +2

    Hi, how do you set the timezone? It's UTC on PowerBI service

    • @joaoluismartins
      @joaoluismartins 4 ปีที่แล้ว +2

      Hey Nomad,
      You can use the following code:
      Source = DateTimeZone.SwitchZone(DateTimeZone.UtcNow(),-3,0), where "-3" is the difference between your timezone and UTC timezone.

    • @stick7646
      @stick7646 4 ปีที่แล้ว

      Try DateTimeZone.FixedLocalNow()

  • @ricardoabella867
    @ricardoabella867 4 ปีที่แล้ว

    Adam, simple and useful thank you so much

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

    This was a Very useful feature.

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

    Very useful, thanks :)

  • @kim1217
    @kim1217 4 ปีที่แล้ว +3

    Easy-peasy, lemon-squeezy 🤓 simple, bit very useful!

  • @TheLampattheDoor
    @TheLampattheDoor 4 ปีที่แล้ว

    Very useful. Thanks.
    The only gotcha I can think of is that this is the date/time of the data refresh from the source. If the source is pulled from another source (which mine is) then that refresh date won't be reflected. My example is that my data is in a google sheet. Unfortunately I don't know of a way to read google sheets from power bi so I need to download to an excel sheet and then pull that into pbi.

  • @richarddavison8838
    @richarddavison8838 ปีที่แล้ว

    I generally add a query to the model that gets the date from the database and then display on report with the Timezone of the Server noted so folks know. Interesting thoughts on how to convert this to local time for the viewer that I will now have to consider.

  • @sujitthakur4172
    @sujitthakur4172 4 ปีที่แล้ว +1

    You guys are the best !!!

    • @GuyInACube
      @GuyInACube  4 ปีที่แล้ว

      Appreciate that! 👊

  • @bakalula
    @bakalula 4 ปีที่แล้ว +1

    Thanks, just fixed a clients request on a Saturday lol :D

  • @rajanair79
    @rajanair79 4 ปีที่แล้ว

    This was very helpful. Thank you for posting this :)

  • @DiegoAndresDazaDavalos
    @DiegoAndresDazaDavalos 3 ปีที่แล้ว

    This was very helpful

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

    Great to learn this trick

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

    What do I think? I think you guys are awesome!!!!

  • @JoseSalazar-jm8os
    @JoseSalazar-jm8os 4 ปีที่แล้ว +2

    *Smashing the Like button*
    Thanks for this!

    • @GuyInACube
      @GuyInACube  4 ปีที่แล้ว

      YES! Thank you 🙏👊

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

    Hi, will this break a direct query type report? As in make it no longer direct querying?

  • @shoaibrehman9988
    @shoaibrehman9988 4 ปีที่แล้ว

    Cool stuff, i was looking vba coding old school method. Gr8 Video Make life easy
    Thanks

  • @nattawut_chatwiriyacharoen
    @nattawut_chatwiriyacharoen 4 ปีที่แล้ว

    I love this video! Many thanks

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

    I think it's better to use Max last updated column (if any) from source rather than using the dataset refresh time.

  • @SivaramKumar-i4b
    @SivaramKumar-i4b ปีที่แล้ว

    is there any workaround for refreshed time in DirectQuery storage mode

  • @cmarinoleon
    @cmarinoleon 3 ปีที่แล้ว

    Thanks again !!

  • @vannitecmediastudio5860
    @vannitecmediastudio5860 3 ปีที่แล้ว

    Awesome, perfect and thanks for the video.

  • @SivaramKumar-i4b
    @SivaramKumar-i4b ปีที่แล้ว

    hi, is there a way to do this in DirectQuery connection since we don't manually refresh the data there?

  • @janakiramn6818
    @janakiramn6818 4 หลายเดือนก่อน

    Is it work when I refresh from the power bi service after publish ?
    Share your thought.

  • @Ta-mq3wb
    @Ta-mq3wb 2 ปีที่แล้ว

    Great Video as always !! I am able to apply the query to my report but when I upload online The power bi app shows 03/14/2022 5.53.ss pm(future time) and only when its updated to app whereas on Desktop and in the online workspace shows correct time.

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

    Awesome, how do I get the refresh date for each table ?

  • @oozmeister1627
    @oozmeister1627 3 ปีที่แล้ว

    Really simple and useful video thanks. Quick question: how do I remove the seconds??? I've searched for ages and can't find an answer!

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

    Thank you 😊

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

    That is an amazing video!

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

    For Auditing, Is there a way to obtain the Reports (PBIX or RDL) Last Modified Date ?
    Or Last Published Date to the service ?
    Not in the API, and Purview Hub Insights used to have it in the Inventory section, but no longer there...
    Also don't want to turn on Auditing logs Details in Production, for persormance reasons
    Thanks!

  • @payaljain5343
    @payaljain5343 4 ปีที่แล้ว +1

    So amazing!!

  • @tareqalkatout6820
    @tareqalkatout6820 4 ปีที่แล้ว +1

    There are any way to get last process date for Cube and display it in PowerBI?

    • @GuyInACube
      @GuyInACube  4 ปีที่แล้ว

      do you mean if you are live connected to an AS Tabular model? It would have to be something similar done within the model like what i showed for Power BI Desktop. Need to be a field you can use that has the info.

    • @tareqalkatout6820
      @tareqalkatout6820 4 ปีที่แล้ว

      @@GuyInACube Thank you for your reply,
      I have a multi dimension AS model, I have researched about displaying the Last Process date for spicific cube but I didn't find any solution,
      I have added a field in a Fact Dimension with update query every time before process spicific cube to handle my scenario.

  • @MnisKmr
    @MnisKmr 8 หลายเดือนก่อน

    What if i wanted the different time zone date time refresh?

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

    Can we have a query that only updates the date if something on model has changed (table settings or database update)??

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

    Really helpful... Thank you (Y)

  • @jatindersingh2241
    @jatindersingh2241 3 ปีที่แล้ว

    how about if you need to change the format eq dd/mm/yyyy to mm/dd/yyyy ...??? for DateRefresh

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

    Does this work with schedule refresh?

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

    That's really great.. but when I publish this into Power bi service, it shows UTC time rather any specific time zone.. how to resolve this, please help.. Thanks..

  • @NdySerdu
    @NdySerdu 4 ปีที่แล้ว

    Thank you so much for all your videos.. Simple and very usefull ! You're the man ! :-)

  • @MrBumbum2812
    @MrBumbum2812 4 ปีที่แล้ว +1

    Can we have this with power query in excel

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

    Q: My semantic model can take up to 10 minutes to refresh all the tables, and the Refresh Data table finishes immediately. So the time stamp I see is when I hit refresh, and not when the whole model actually finished. Any suggestions on how to make the Refresh Data table update and the end?

  •  2 ปีที่แล้ว

    Thank you for the excellent content. I have a doubt. How could I get a refresh date from a specific data table?

  • @sunitabhutani3394
    @sunitabhutani3394 4 ปีที่แล้ว

    Hi Guys, I am using live connection to tabular model in my report. Is there a way to capture last cache refresh datetime to show on report?

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

    Now a tricky one: can you suggest how to achieve same result for DirectLake based semantic model?

  • @jlponente
    @jlponente 3 ปีที่แล้ว

    Great. thanks !