<?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 How to set timeZone using pbi parameters in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-timeZone-using-pbi-parameters/m-p/1612496#M27378</link>
    <description>&lt;P&gt;I would like to create a report that has dynamique date gestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My need it to pass the timezone offset via a parameter. then generate a new date column based on UTC column + Timezone offset parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started by creating a parameter that have type any ( may be I should change the type ) that should contain the offset&amp;nbsp; for example 3&amp;nbsp; or -5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITInge_0-1611184878425.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/436788i132C77D5F2C8EF4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITInge_0-1611184878425.png" alt="ITInge_0-1611184878425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I create a custom column based on my UTC column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITInge_1-1611185031456.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/436789iFD914C0401480341/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITInge_1-1611185031456.png" alt="ITInge_1-1611185031456.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm stucked here on how can I link the offset number and UTC column to get the right date format in correct timezone ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2021 23:26:28 GMT</pubDate>
    <dc:creator>ITInge</dc:creator>
    <dc:date>2021-01-20T23:26:28Z</dc:date>
    <item>
      <title>How to set timeZone using pbi parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-timeZone-using-pbi-parameters/m-p/1612496#M27378</link>
      <description>&lt;P&gt;I would like to create a report that has dynamique date gestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My need it to pass the timezone offset via a parameter. then generate a new date column based on UTC column + Timezone offset parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started by creating a parameter that have type any ( may be I should change the type ) that should contain the offset&amp;nbsp; for example 3&amp;nbsp; or -5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITInge_0-1611184878425.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/436788i132C77D5F2C8EF4C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITInge_0-1611184878425.png" alt="ITInge_0-1611184878425.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I create a custom column based on my UTC column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ITInge_1-1611185031456.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/436789iFD914C0401480341/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ITInge_1-1611185031456.png" alt="ITInge_1-1611185031456.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm stucked here on how can I link the offset number and UTC column to get the right date format in correct timezone ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 23:26:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-timeZone-using-pbi-parameters/m-p/1612496#M27378</guid>
      <dc:creator>ITInge</dc:creator>
      <dc:date>2021-01-20T23:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set timeZone using pbi parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-timeZone-using-pbi-parameters/m-p/1612958#M27387</link>
      <description>&lt;P&gt;date formats and time zones have nothing to do with each other.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can't you leave the format rendering up to the users' locale settings?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 03:37:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-timeZone-using-pbi-parameters/m-p/1612958#M27387</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-01-21T03:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to set timeZone using pbi parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-timeZone-using-pbi-parameters/m-p/1613063#M27390</link>
      <description>&lt;P&gt;Ok what I mean here by date format is the right time for the user .&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I be sure that the user will see the dates in his local time zone ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For information user will only have access to embedded dashboard&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 05:11:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-timeZone-using-pbi-parameters/m-p/1613063#M27390</guid>
      <dc:creator>ITInge</dc:creator>
      <dc:date>2021-01-21T05:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to set timeZone using pbi parameters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-set-timeZone-using-pbi-parameters/m-p/1619412#M27459</link>
      <description>&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/265462"&gt;@ITInge&lt;/a&gt;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;I think you can add a user table that includes the user and date timezone offsets, then you can add a new column to your date table to calculate correspond datetime based on current date time fields and user timezone offset.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;If you do not have these timezone offsets, you can also use the query parameter and 'datetime.addzone' function to change datetime based on timezone parameters..&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;&lt;A href="https://docs.microsoft.com/en-us/powerquery-m/datetime-addzone" target="_self"&gt;DateTime.AddZone&lt;/A&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Regards,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="tahoma,arial,helvetica,sans-serif"&gt;Xiaoxin Sheng&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 02:00:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-set-timeZone-using-pbi-parameters/m-p/1619412#M27459</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-25T02:00:48Z</dc:date>
    </item>
  </channel>
</rss>

