<?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 Staring blind on creating the expression ... HELP! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189324#M52251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anita,&lt;/P&gt;&lt;P&gt;I think you need to clarify to us and to yourself, what exactly are you after? For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;A Fuchten wrote:I'm looking for something to show the number of SERVICE_ID's for a certain INTERVAL.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;----------------------------&lt;/P&gt;&lt;P&gt;If INTERVAL is a Dimension, then COUNT(DISTINCT SERVICE_ID) would answer this question.&lt;/P&gt;&lt;P&gt;On the other side:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;A Fuchten wrote:The count should be something with the DISTINCT SERVICE_ID and the max(SESSION_ID) ...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;----------------------------&lt;/P&gt;&lt;P&gt;not sure what you mean here... What's the relation to the Session ID ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;A Fuchten wrote:&lt;BR /&gt;Result should be something like:&lt;BR /&gt;1 - 1x&lt;BR /&gt;28 - 1x&lt;BR /&gt;30 - 2x&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;------------------------------&lt;/P&gt;&lt;P&gt;I counted 2 distinct Sessions with Interval = 1. Am I counting wrongly?&lt;/P&gt;&lt;P&gt;please clarify your needs...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 17:24:45 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2010-06-15T17:24:45Z</dc:date>
    <item>
      <title>Staring blind on creating the expression ... HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189323#M52250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I'm staring blind at this ... maybe someone can help me find the light &lt;I&gt; ?&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with sessions:&lt;/P&gt;&lt;P&gt;SESSION_ID, SERVICE_ID, ........ , INTERVAL&lt;BR /&gt;1, 123, .... , 1&lt;BR /&gt;2, 123, .... , 1&lt;BR /&gt;3, 124, .... , 28&lt;BR /&gt;4, 123, .... , 30&lt;BR /&gt;5, 125, .... , 1&lt;BR /&gt;6, 123, .... , 30&lt;BR /&gt;7, 126, .... , 30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for something to show the number of SERVICE_ID's for a certain INTERVAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The count should be something with the DISTINCT SERVICE_ID and the max(SESSION_ID) ...&lt;/P&gt;&lt;P&gt;Result should be something like:&lt;/P&gt;&lt;P&gt;1 - 1x&lt;BR /&gt;28 - 1x&lt;BR /&gt;30 - 2x&lt;/P&gt;&lt;P&gt;I would like the INTERVAL to be a dimension ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody help my on the way with the expression??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;many thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 14:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189323#M52250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-15T14:33:15Z</dc:date>
    </item>
    <item>
      <title>Staring blind on creating the expression ... HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189324#M52251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anita,&lt;/P&gt;&lt;P&gt;I think you need to clarify to us and to yourself, what exactly are you after? For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;A Fuchten wrote:I'm looking for something to show the number of SERVICE_ID's for a certain INTERVAL.&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;----------------------------&lt;/P&gt;&lt;P&gt;If INTERVAL is a Dimension, then COUNT(DISTINCT SERVICE_ID) would answer this question.&lt;/P&gt;&lt;P&gt;On the other side:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;A Fuchten wrote:The count should be something with the DISTINCT SERVICE_ID and the max(SESSION_ID) ...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;----------------------------&lt;/P&gt;&lt;P&gt;not sure what you mean here... What's the relation to the Session ID ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;A Fuchten wrote:&lt;BR /&gt;Result should be something like:&lt;BR /&gt;1 - 1x&lt;BR /&gt;28 - 1x&lt;BR /&gt;30 - 2x&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;------------------------------&lt;/P&gt;&lt;P&gt;I counted 2 distinct Sessions with Interval = 1. Am I counting wrongly?&lt;/P&gt;&lt;P&gt;please clarify your needs...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 17:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189324#M52251</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-06-15T17:24:45Z</dc:date>
    </item>
    <item>
      <title>Staring blind on creating the expression ... HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189325#M52252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understood the question:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;[Data]:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;SESSION_ID, SERVICE_ID, INTERVAL&lt;BR /&gt;1, 123, 1&lt;BR /&gt;2, 123, 1&lt;BR /&gt;3, 124, 28&lt;BR /&gt;4, 123, 30&lt;BR /&gt;5, 125, 1&lt;BR /&gt;6, 123, 30&lt;BR /&gt;7, 126, 30&lt;BR /&gt;];&lt;BR /&gt;LEFT JOIN ([Data])&lt;BR /&gt;LOAD *&lt;BR /&gt;,if(SERVICE_ID&amp;lt;&amp;gt;previous(SERVICE_ID),1) as Max?&lt;BR /&gt;RESIDENT [Data]&lt;BR /&gt;ORDER BY SERVICE_ID,SESSION_ID DESC&lt;BR /&gt;;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Dimension = INTERVAL&lt;BR /&gt;Expression = count({&amp;lt;Max?={1}&amp;gt;} distinct SERVICE_ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 21:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189325#M52252</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-15T21:25:34Z</dc:date>
    </item>
    <item>
      <title>Staring blind on creating the expression ... HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189326#M52253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Non-script approach if you want the max(SESSION_ID) to be responsive to selections:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;Dimension = INTERVAL&lt;BR /&gt;Expression = count({&amp;lt;SESSION_ID={$(=concat(aggr(max(SESSION_ID),SERVICE_ID),','))}&amp;gt;} distinct SERVICE_ID)&lt;/P&gt;&lt;P&gt;Not sure about the performance, though, and it might crash if your data set is large enough. Might be some other approach that would work better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 21:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189326#M52253</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-15T21:36:11Z</dc:date>
    </item>
    <item>
      <title>Staring blind on creating the expression ... HELP!</title>
      <link>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189327#M52254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks that this is what i'm looking for ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will try this out later today!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jun 2010 08:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Staring-blind-on-creating-the-expression-HELP/m-p/189327#M52254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-17T08:58:43Z</dc:date>
    </item>
  </channel>
</rss>

