<?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: Change Timezone based on User Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712726#M539166</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this expression for the variable vTimeZone:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(StandardTimeZoneName like GetFieldSelections(StandardTimeZoneName), QlikViewTimeZoneName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then used this in the chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=ConvertToLocalTime(Timestamp, vTimeZone)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 20:33:13 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-09-16T20:33:13Z</dc:date>
    <item>
      <title>Change Timezone based on User Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712725#M539165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to change the time stamps to a user specified timezone.&amp;nbsp; I have attached a QVW to better demonstrate what I am attempting to accomplish.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TimeZones table has the name displayed in the multi-selector box and the timezone name QlikView understands.&amp;nbsp; Then, somehow, I will need the timezone name QlikView understands to use in the ConvertToLocalTime function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 19:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712725#M539165</guid>
      <dc:creator />
      <dc:date>2014-09-16T19:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Change Timezone based on User Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712726#M539166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used this expression for the variable vTimeZone:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(StandardTimeZoneName like GetFieldSelections(StandardTimeZoneName), QlikViewTimeZoneName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then used this in the chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=ConvertToLocalTime(Timestamp, vTimeZone)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 20:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712726#M539166</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-09-16T20:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Change Timezone based on User Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712727#M539167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This helped out a lot.&amp;nbsp; I took your suggestions one step further and applied to the month selector and created a year selector.&amp;nbsp; The selectors work, but when you change the time zone,it get goofy.&amp;nbsp; After changing the time zone, the rows in the ConvertedDate chart no longer reflect the selections accurately.&amp;nbsp; I added a current selection box to see the selections because the selectors no longer show the selections in green.&amp;nbsp; Clearing all selections and reselecting the selections causes the ConvertedDdate chart to accurately display.&amp;nbsp; I have attached a document with the changes that I made.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions on how to get around this nuance?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 00:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712727#M539167</guid>
      <dc:creator />
      <dc:date>2014-09-17T00:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Change Timezone based on User Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712728#M539168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might have to use a date island (table of dates with no links to another table) in this situation, then use an expression to filter the chart. The expression might look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Monthname(ConvertToLocalTime(Timestamp, vTimeZone))&amp;gt;= min(MonthYear) and Monthname(ConvertToLocalTime(Timestamp, vTimeZone)) &amp;lt;= max(MonthYear), ConvertToLocalTime(Timestamp, vTimeZone))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get the date island you can try this code out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempMaxMin:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;max(Timestamp) as MaxDate,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;min(Timestamp) as MinDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident TableA;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vMinDate = floor(addmonths(peek('MinDate'), -1));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let vMaxDate = floor(addmonths(peek('MaxDate'), 1));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MasterCalendarTemp:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; MonthName($(vMinDate)+rowno()) as MonthYear,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; year($(vMinDate)+rowno()) as Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate(($(vMaxDate)-$(vMinDate)));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMinDate = NULL();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET vMaxDate = NULL();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Drop Table TempMaxMin;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll have to change each chart and add an expression like the above to it, but use the expression you need in the second parameter of the if statement. You could also try using a calculated dimension as well, but you'll need to wrap the function above with aggr (since you can't use aggregation functions in calculated dimensions) like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333339691162px;"&gt;&lt;STRONG&gt;aggr(i&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="font-size: 13.3333339691162px;"&gt;f(Monthname(ConvertToLocalTime(Timestamp, vTimeZone))&amp;gt;= min(MonthYear) and Monthname(ConvertToLocalTime(Timestamp, vTimeZone)) &amp;lt;= max(MonthYear), ConvertToLocalTime(Timestamp, vTimeZone)), Timestamp)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached. Check out lower table and listboxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 14:26:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712728#M539168</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-09-17T14:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Change Timezone based on User Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712729#M539169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&amp;nbsp; This got complicated real fast.&amp;nbsp; I had been considering using the suggestion at this link &lt;A href="http://min-maxing.com/blog/2012/07/20/easy-date-range-selection-with-qlikview/" title="http://min-maxing.com/blog/2012/07/20/easy-date-range-selection-with-qlikview/"&gt;Easy Date Range Selection with Qlikview | Min-Maxing&lt;/A&gt; for a while.&amp;nbsp; I had held off on this due to the amount of effort required to implement.&amp;nbsp; Making the selectors work with timezone selections requires about the same amount of effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be nice if QlikView worked better with time zones.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 12:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-Timezone-based-on-User-Selection/m-p/712729#M539169</guid>
      <dc:creator />
      <dc:date>2014-09-18T12:36:35Z</dc:date>
    </item>
  </channel>
</rss>

