<?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 Help with writing script based on Inline view in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-writing-script-based-on-Inline-view/m-p/423501#M1158820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which I originally built upon an inline view and wrote the expression in the pivot table to show the data. Example is below &lt;/P&gt;&lt;P&gt;(This is an example of what is a much larger inline table in reality)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Old Version&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; text-decoration: underline;"&gt;InLine View&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inline_MAINED:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;'Level Order', Level1, Level2, Level3, Level4, Level5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'3', 'TOTAL TIME SPENT IN DEPT',' NON ADMITTED', '95TH CENTILE', '&amp;lt;=04:00', 'CURRENT MONTH'&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;];&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then built a pivot table and wrote the following in the expression, but before long it became too large to work efficiently&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Expression in pivot table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//NON ADMITTED: CURRENT MONTH&lt;/P&gt;&lt;P&gt; if(Level2='NON ADMITTED' AND Level5 = 'CURRENT MONTH',&lt;/P&gt;&lt;P&gt;Time(Fractile({&amp;lt;RunMonth = {$(=Max(RunMonth))}, [Patient Admitted?]={"0"} &amp;gt;}[Total Wait],0.95)/1440, 'hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;New Version&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I then went back to my script and tried rewriting the necessary information in the script I.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Inline View&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, autonumber(Level1&amp;amp;'#'&amp;amp; Level2&amp;amp;'#'&amp;amp; Level3&amp;amp;'#'&amp;amp; Level4&amp;amp;'#'&amp;amp; Level5,'Inline_Monthly_Key_Overview') as Inline_Monthly_Key_Overview INLINE [&lt;BR /&gt;'Level Order', Level1, Level2, Level3, Level4, Level5,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'3', 'TOTAL TIME SPENT IN DEPT',' NON ADMITTED', '95TH CENTILE', '&amp;lt;=04:00', 'CURRENT MONTH'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inline_MAINED:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;autonumber('TOTAL TIME SPENT IN DEPT'&amp;nbsp; &amp;amp;'#'&amp;amp;'NON ADMITTED' &amp;amp; '#' &amp;amp;'95TH CENTILE' &amp;amp;'#' &amp;amp; '&amp;lt;=04:00' &amp;amp;'#' &amp;amp; 'CURRENT MONTH','Inline_Monthly_Key_Overview') as Inline_Monthly_Key_Overview,&lt;/P&gt;&lt;P&gt;RunMonth = Max(RunMonth) as Inline_Monthly_Overview_MonthYear,&lt;/P&gt;&lt;P&gt;[Total Wait] as Inline_Monthly_Data_C,&lt;/P&gt;&lt;P&gt;'EDE' as Inline_Monthly_DataSource&lt;/P&gt;&lt;P&gt;Resident main_data&lt;/P&gt;&lt;P&gt;where 'MAIN_EDE_PostQVD' = data_source&lt;/P&gt;&lt;P&gt;and [Patient Admitted?]=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Expression in pivot table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (Level3='95TH CENTILE',time(Fractile(Inline_Monthly_Data_C,0.95)/1440,'hh:mm')) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However I cannot get it working....Could someone kindly cast an eye over the scripting to see what amendments I need to get working, especially around the set analysis for current month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿Helen&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 13:51:05 GMT</pubDate>
    <dc:creator>helen_pip</dc:creator>
    <dc:date>2013-01-15T13:51:05Z</dc:date>
    <item>
      <title>Help with writing script based on Inline view</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-writing-script-based-on-Inline-view/m-p/423501#M1158820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table which I originally built upon an inline view and wrote the expression in the pivot table to show the data. Example is below &lt;/P&gt;&lt;P&gt;(This is an example of what is a much larger inline table in reality)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Old Version&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; text-decoration: underline;"&gt;InLine View&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inline_MAINED:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;'Level Order', Level1, Level2, Level3, Level4, Level5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'3', 'TOTAL TIME SPENT IN DEPT',' NON ADMITTED', '95TH CENTILE', '&amp;lt;=04:00', 'CURRENT MONTH'&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;];&lt;/SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then built a pivot table and wrote the following in the expression, but before long it became too large to work efficiently&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Expression in pivot table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//NON ADMITTED: CURRENT MONTH&lt;/P&gt;&lt;P&gt; if(Level2='NON ADMITTED' AND Level5 = 'CURRENT MONTH',&lt;/P&gt;&lt;P&gt;Time(Fractile({&amp;lt;RunMonth = {$(=Max(RunMonth))}, [Patient Admitted?]={"0"} &amp;gt;}[Total Wait],0.95)/1440, 'hh:mm')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;New Version&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I then went back to my script and tried rewriting the necessary information in the script I.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Inline View&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *, autonumber(Level1&amp;amp;'#'&amp;amp; Level2&amp;amp;'#'&amp;amp; Level3&amp;amp;'#'&amp;amp; Level4&amp;amp;'#'&amp;amp; Level5,'Inline_Monthly_Key_Overview') as Inline_Monthly_Key_Overview INLINE [&lt;BR /&gt;'Level Order', Level1, Level2, Level3, Level4, Level5,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'3', 'TOTAL TIME SPENT IN DEPT',' NON ADMITTED', '95TH CENTILE', '&amp;lt;=04:00', 'CURRENT MONTH'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Script&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inline_MAINED:&lt;/P&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;autonumber('TOTAL TIME SPENT IN DEPT'&amp;nbsp; &amp;amp;'#'&amp;amp;'NON ADMITTED' &amp;amp; '#' &amp;amp;'95TH CENTILE' &amp;amp;'#' &amp;amp; '&amp;lt;=04:00' &amp;amp;'#' &amp;amp; 'CURRENT MONTH','Inline_Monthly_Key_Overview') as Inline_Monthly_Key_Overview,&lt;/P&gt;&lt;P&gt;RunMonth = Max(RunMonth) as Inline_Monthly_Overview_MonthYear,&lt;/P&gt;&lt;P&gt;[Total Wait] as Inline_Monthly_Data_C,&lt;/P&gt;&lt;P&gt;'EDE' as Inline_Monthly_DataSource&lt;/P&gt;&lt;P&gt;Resident main_data&lt;/P&gt;&lt;P&gt;where 'MAIN_EDE_PostQVD' = data_source&lt;/P&gt;&lt;P&gt;and [Patient Admitted?]=0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Expression in pivot table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; color: #800000;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if (Level3='95TH CENTILE',time(Fractile(Inline_Monthly_Data_C,0.95)/1440,'hh:mm')) &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;However I cannot get it working....Could someone kindly cast an eye over the scripting to see what amendments I need to get working, especially around the set analysis for current month&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Kind Regards&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿Helen&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 13:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-writing-script-based-on-Inline-view/m-p/423501#M1158820</guid>
      <dc:creator>helen_pip</dc:creator>
      <dc:date>2013-01-15T13:51:05Z</dc:date>
    </item>
  </channel>
</rss>

