Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 61926

Power Query date calculations using UTC or possibly US times instead of local

$
0
0

Hi

 

I'm in Australia on the east coast. My Power BI Service gateway is correctly listed as WABI-AUSTRALIA-EAST-A-PRIMARY-redirect.analysis.windows.net

 

Today here it is 1st December.

 

All of my reports have refreshed today (since midnight local time) already.

 

In the Power BI Service if I choose a report and select the relative date filter for last 1 calendar month, it shows me October dates and not November. 

 

In my report models I have in Power Query this step, which defines which dates are in 'last month' (my users prefer this way instead  of having to set a relative date filter):

= Table.AddColumn(#"Added Current Fiscal Year", "Last Month", each if Date.IsInPreviousMonth([Date]) then 1 else null)

 

In Power BI Desktop when I refresh this, it marks all Nov 2020 dates with a 1 against them, which is what I expect.

 

In the Power BI Service, my report refreshed successfully this morning but all 'Last Month' dates are listed as Oct.

 

Does anyone know why this difference is datime calcs would be happening depending on wether it is done in PBI Desktop or via a dataset refresh in a PBI service where the gateway is running in the same timezone?


Viewing all articles
Browse latest Browse all 61926

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>