<?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 Slow Chart Refresh in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Slow-Chart-Refresh/m-p/198554#M57818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I am not sure I follow. Are you saying I should break the Expression up into Flag1, Flag2, etc? I am unsure on when and how to use the leftjoin.&lt;/P&gt;&lt;P&gt;The expression contains fields from two tables: The PatientVisit table(AdtDateTime and DscDateTime) and the Calendar table(CanlendarDate).&lt;/P&gt;&lt;P&gt;In the attached example I have am using a Resident table for PatientVisit. For patient privacy reasons I cannot offer live data. In production this will be connected to the live OLEDB. An example of how it works with live data is on the 'LivePatDays' script tab.&lt;/P&gt;&lt;P&gt;I understand the need to join the CalendarDate so you can use it in the expression but unsure how to accomplish it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 15:55:55 GMT</pubDate>
    <dc:creator>dhborchardt</dc:creator>
    <dc:date>2011-02-03T15:55:55Z</dc:date>
    <item>
      <title>Slow Chart Refresh</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Chart-Refresh/m-p/198552#M57816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an expression that along with the date dimension will build a chart. Unfortunately the chart takes a long time to refresh if you make a selection. Is there a way to run this expression during reload to create a new field with sum of hours per day ?&lt;/P&gt;&lt;P&gt;The following expression tests AdtDateTime and DscDateTime to determine how many hours fall within each day. Maybe I am way off track and there is an easier way of doing this.&lt;/P&gt;&lt;P&gt;=Sum(IF(AdtDateTime &amp;lt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')) AND DscDateTime &amp;gt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')+1),24,&lt;BR /&gt;IF(AdtDateTime &amp;gt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')) AND AdtDateTime &amp;lt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')+1) AND DscDateTime &amp;gt;&lt;BR /&gt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')+1), (TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')+1) - AdtDateTime)*24,&lt;BR /&gt;IF(AdtDateTime &amp;gt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')) AND DscDateTime &amp;lt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')+1), (DscDateTime - AdtDateTime)*24,&lt;BR /&gt;IF(DscDateTime &amp;gt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')) AND DscDateTime &amp;lt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')+1) AND AdtDateTime &amp;lt;&lt;BR /&gt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')), (DscDateTime - TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')))*24)))))&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 21:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Chart-Refresh/m-p/198552#M57816</guid>
      <dc:creator>dhborchardt</dc:creator>
      <dc:date>2011-02-02T21:40:10Z</dc:date>
    </item>
    <item>
      <title>Slow Chart Refresh</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Chart-Refresh/m-p/198553#M57817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;U can calculate the expression in backend(load script if fields are in same table else load resident), it will take some extra time while loading the script but ur frontend performance will surly improve.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;if (AdtDateTime &amp;lt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')) AND DscDateTime &amp;gt; TimeStamp(Date(CalendarDate,'MM/DD/YYYY hh:mm:ss')+1) ,1,0) as Flag1,&lt;/P&gt;&lt;P&gt;in this way u can create the flags and use if(Flag=1,24,else part)&lt;/P&gt;&lt;P&gt;will reduce the calculation time in frontend.&lt;/P&gt;&lt;P&gt;If above expression fields are in seperate table in then use leftjoin to join the two tables. as fields from same table reduce the calculation time of the chart.&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 03:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Chart-Refresh/m-p/198553#M57817</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-02-03T03:55:50Z</dc:date>
    </item>
    <item>
      <title>Slow Chart Refresh</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Chart-Refresh/m-p/198554#M57818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I am not sure I follow. Are you saying I should break the Expression up into Flag1, Flag2, etc? I am unsure on when and how to use the leftjoin.&lt;/P&gt;&lt;P&gt;The expression contains fields from two tables: The PatientVisit table(AdtDateTime and DscDateTime) and the Calendar table(CanlendarDate).&lt;/P&gt;&lt;P&gt;In the attached example I have am using a Resident table for PatientVisit. For patient privacy reasons I cannot offer live data. In production this will be connected to the live OLEDB. An example of how it works with live data is on the 'LivePatDays' script tab.&lt;/P&gt;&lt;P&gt;I understand the need to join the CalendarDate so you can use it in the expression but unsure how to accomplish it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 15:55:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Chart-Refresh/m-p/198554#M57818</guid>
      <dc:creator>dhborchardt</dc:creator>
      <dc:date>2011-02-03T15:55:55Z</dc:date>
    </item>
    <item>
      <title>Slow Chart Refresh</title>
      <link>https://community.qlik.com/t5/QlikView/Slow-Chart-Refresh/m-p/198555#M57819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to attach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 16:03:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Slow-Chart-Refresh/m-p/198555#M57819</guid>
      <dc:creator>dhborchardt</dc:creator>
      <dc:date>2011-02-03T16:03:57Z</dc:date>
    </item>
  </channel>
</rss>

