<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Timezone conversions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3444725#M131007</link>
    <description>&lt;P&gt;Hi, I couldnt find the solution for this. However I have created a table with states, timezones and offset's then joined with another table with destination state. However the formulas are not working to convert the timstamps. could someone help me with this?&lt;/P&gt;</description>
    <pubDate>Sun, 24 Sep 2023 13:28:31 GMT</pubDate>
    <dc:creator>Manaswini94</dc:creator>
    <dc:date>2023-09-24T13:28:31Z</dc:date>
    <item>
      <title>Timezone conversions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3402539#M128507</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a requirement where users would like to see the timestamps in destination state local time. Currently i have data in ZULU(UTC) time and a destination state column which has data like NY, AR,TN etc... Can someone help me on how to convert the timestamps based on destination state in power bi?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 15:37:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3402539#M128507</guid>
      <dc:creator>Manaswini94</dc:creator>
      <dc:date>2023-08-28T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3405552#M128673</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="501818" data-lia-user-login="Manaswini94" class="lia-mention lia-mention-user"&gt;Manaswini94&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please refer to the following links in the hopes of helping you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Service/Conversion-UTC-to-local-time-date/td-p/1095238" target="_blank" rel="nofollow noopener noreferrer"&gt;Conversion UTC to local time date - Microsoft Power BI Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://powerbitalks.com/2020/08/convert-utc-into-local-time-zone-po.html" target="_blank" rel="nofollow noopener noreferrer"&gt;How to convert UTC into Local Time Zone in Power BI Report using DAX? - PowerBI Talks&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://cloudbi.com.au/converting-utc-to-local-datetime-in-power-bi/" target="_blank" rel="nofollow noopener noreferrer"&gt;Converting UTC to local datetime in Power BI – Cloud BI&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://intellitect.com/convert-utc-local-time-daylight-savings-support-power-bi/" target="_blank" rel="nofollow noopener noreferrer"&gt;Convert UTC to Local Time in Power BI - IntelliTect&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;helps, then please consider&amp;nbsp;&lt;EM&gt;Accept it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 01:31:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3405552#M128673</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-08-30T01:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3444617#M130999</link>
      <description>&lt;P&gt;I hope this message finds you well. I've noticed that this solution remain unresolved. If any of you have managed to find a resolution to the issue, I kindly request that you share your solution for the benefit of the entire community. Alternatively, if you're still facing challenges, please do let us know as well.&lt;/P&gt;
&lt;P&gt;Your insights and updates will greatly assist others who might be encountering the same challenge.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 08:14:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3444617#M130999</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2023-09-24T08:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3444725#M131007</link>
      <description>&lt;P&gt;Hi, I couldnt find the solution for this. However I have created a table with states, timezones and offset's then joined with another table with destination state. However the formulas are not working to convert the timstamps. could someone help me with this?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2023 13:28:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3444725#M131007</guid>
      <dc:creator>Manaswini94</dc:creator>
      <dc:date>2023-09-24T13:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Timezone conversions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3444768#M131026</link>
      <description>&lt;P&gt;To convert the timestamps based on the destination state in Power BI, you can make use of DAX formulas combined with a lookup table for time zones. Here's a step-by-step guide:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Create a Time Zone Lookup Table: You need a table that maps each state abbreviation to its respective time zone offset. For instance:&lt;BR /&gt;&lt;BR /&gt;State | TimeZone&lt;BR /&gt;------|---------&lt;BR /&gt;NY | -5&lt;BR /&gt;AR | -6&lt;BR /&gt;TN | -6&lt;BR /&gt;... | ...&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;P&gt;Note: Adjust the time offsets based on Daylight Saving Time if necessary or include an additional column to flag states that observe it.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Relationship: Ensure there's a relationship between your data table and the time zone lookup table based on the state abbreviation.&lt;/STRONG&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;DAX formula: Once the relationship is established, you can use DAX to create a calculated column or measure that adjusts the UTC time for each row based on the state's time zone. Here's a simple example:&lt;/STRONG&gt;&lt;/P&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;LocalTime = 'DataTable'[ZULU Time] + LOOKUPVALUE('TimeZoneLookupTable'[TimeZone], 'TimeZoneLookupTable'[State], 'DataTable'[State])&lt;BR /&gt;
&lt;P&gt;Here, 'DataTable'[ZULU Time] is your timestamp in ZULU (UTC) time, and the LOOKUPVALUE function fetches the time zone offset for each state.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Adjust for Daylight Saving Time (optional): If you have a flag in your time zone lookup table for states that observe daylight saving time, you can further refine the DAX formula to adjust for it.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The above method is a basic approach. Actual implementation can vary based on the exact requirements and data structures. If states span multiple time zones or if you have specific date ranges to adjust for daylight saving time, things can get more complex.&lt;/P&gt;
&lt;P&gt;If your dataset is large, consider performance implications of row-by-row operations and try to optimize your DAX expressions accordingly.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sun, 24 Sep 2023 14:53:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Timezone-conversions/m-p/3444768#M131026</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2023-09-24T14:53:11Z</dc:date>
    </item>
  </channel>
</rss>

