Forum Discussion
Last Refresh time data input not working in PowerBI Service?
I have added a query that contains my local date time the query is like this:
= DateTime.LocalNow
and created a table for this and am using that column inside my report, but the problem is whenever why powerbi service do a refresh the time changes to something -6 or 5 hours or something, I am in +0530 GMT timezone, how can I eliminate this in order to get correct timezone in my powerbi service reports?
7 Replies
- nahid3152
Helper II
HI,Anmolgan
Use
NOW=FORMAT(UTCTODAY()+ TIME(6,0,0),"DD-MMM-YY")
If time zone 6 then use 6 or use as per your requirement- Anmolgan
Post Prodigy
nahid3152 this does not works as it gives me only dates and I need date with time, I have made the below M query statments and it seems that it works with the powerbi service:
let
Source = DateTimeZone.UtcNow() + #duration(0,05,30,0),
#"Converted to Table" = #table(1, {{Source}}),
Column1 = #"Converted to Table"{0}[Column1],
#"Converted to Table1" = #table(1, {{Column1}}),
#"Renamed Columns" = Table.RenameColumns(#"Converted to Table1",{{"Column1", "Time"}})
in
#"Renamed Columns"But it gives me date in format of ddmmyy hh;mm;ss +00
How can I remove +00 option from here? any ways to reformat this?
- v-xuding-msft
Community Support
Hi Anmolgan ,
Please try to change the data type to Date/Time in Query Editor.
Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- mwegener
Most Valuable Professional
Hi Anmolgan ,
do you know the metadata (1) in the Power BI Service?
https://powerbi.microsoft.com/en-us/blog/introducing-the-new-look-for-power-bi-service/
Regards,
Marcus
Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.