<?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: Moving expressions back to LOAD script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Moving-expressions-back-to-LOAD-script/m-p/1336468#M412176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Helen,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It is somewhat difficult to express your opinion on your question without seeing your data. And yet I'll try.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1. You at the script level need to re-create one table of several, similar to the one you have in Table Chart of UI. For this purpose I would create a separate table that is not related to others tables (data island due to unique field names).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2. Your new table will be "assembled" from the successively connected source tables (&lt;STRONG&gt;Master_Calender&lt;/STRONG&gt;, &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Main_Data &lt;/STRONG&gt;etc.)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3. All the restrictions and selections that you see in the expression presented by you will be transferred to the line of the operator &lt;STRONG&gt;Where&lt;/STRONG&gt;. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Main_Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Where &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;FactDate &amp;gt;=MonthStart(max(AddMonths(FactDate,-1))) And...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;4. There may be a need for some more code snippets, but in general the direction of action is described above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Andrey&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2017 10:50:18 GMT</pubDate>
    <dc:creator>ahaahaaha</dc:creator>
    <dc:date>2017-07-06T10:50:18Z</dc:date>
    <item>
      <title>Moving expressions back to LOAD script</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-expressions-back-to-LOAD-script/m-p/1336467#M412175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Qlikview User&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created&amp;nbsp; a page in my QVW which contains lots of expressions.&amp;nbsp; However this particular page does not have any user interaction, just static figures, so from a performance perspective I am thinking of moving the expressions back to the load script and just using the value in the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My expression is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;FactDate = {"&amp;gt;=$(=MonthStart(max(AddMonths(FactDate,-1))&amp;lt;=$(=MonthEnd(max(AddMonths(FactDate,-1))))"},ED_Planned_Attendance_Flag = {'0'}, data_source = {'Main ED'}&amp;gt;}Breach_4hr_Wait_Flag)) / &lt;/P&gt;&lt;P&gt;(Count({&amp;lt;FactDate = {"&amp;gt;=$(=MonthStart(max(AddMonths(FactDate,-1)))) &amp;lt;=$(=MonthEnd(max(AddMonths(FactDate,-1))))"},ED_Planned_Attendance_Flag = {'0'}, data_source = {'Main ED'}&amp;gt;}Unique_ID)), '##.##%') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am confused to how I will bring this expression together as the fields are coming from 3 different tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Master_Calender&lt;/STRONG&gt; table has FactDate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Main_Data&lt;/STRONG&gt; table has data_source&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim_ED&lt;/STRONG&gt; has &lt;SPAN style="font-size: 13.3333px;"&gt;ED_Planned_Attendance_Flag, &lt;SPAN style="font-size: 13.3333px;"&gt;Breach_4hr_Wait_Flag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Master_Calender&lt;/STRONG&gt; is linked to &lt;STRONG&gt;Main_Data&lt;/STRONG&gt; on FactDate&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim_ED&lt;/STRONG&gt; is linked to &lt;STRONG&gt;Main_Data&lt;/STRONG&gt; on Unique_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I require a small amount of guidance on where I should place my expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Helen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 09:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-expressions-back-to-LOAD-script/m-p/1336467#M412175</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2017-07-06T09:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Moving expressions back to LOAD script</title>
      <link>https://community.qlik.com/t5/QlikView/Moving-expressions-back-to-LOAD-script/m-p/1336468#M412176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Helen,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;It is somewhat difficult to express your opinion on your question without seeing your data. And yet I'll try.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1. You at the script level need to re-create one table of several, similar to the one you have in Table Chart of UI. For this purpose I would create a separate table that is not related to others tables (data island due to unique field names).&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2. Your new table will be "assembled" from the successively connected source tables (&lt;STRONG&gt;Master_Calender&lt;/STRONG&gt;, &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Main_Data &lt;/STRONG&gt;etc.)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3. All the restrictions and selections that you see in the expression presented by you will be transferred to the line of the operator &lt;STRONG&gt;Where&lt;/STRONG&gt;. For example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Main_Data&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000;"&gt;Where &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="color: #ff0000;"&gt;FactDate &amp;gt;=MonthStart(max(AddMonths(FactDate,-1))) And...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;4. There may be a need for some more code snippets, but in general the direction of action is described above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Andrey&lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 10:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Moving-expressions-back-to-LOAD-script/m-p/1336468#M412176</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-07-06T10:50:18Z</dc:date>
    </item>
  </channel>
</rss>

