<?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: Problem with a box plot - or redesign is the issue? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-a-box-plot-or-redesign-is-the-issue/m-p/1096420#M640275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I understand your issue.&lt;/P&gt;&lt;P&gt;Could you upload some sample data (e.g. in an excel file) and what you expect to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2016 11:29:07 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-01-29T11:29:07Z</dc:date>
    <item>
      <title>Problem with a box plot - or redesign is the issue?</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-box-plot-or-redesign-is-the-issue/m-p/1096419#M640274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I have created a data model (hint to self:&amp;nbsp; in future ALWAYS create a data model first)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data comes from my sql query like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="474"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="89"&gt;ActivityID&lt;/TD&gt;&lt;TD width="65"&gt;Activity&lt;/TD&gt;&lt;TD class="xl64" width="109"&gt;Act_DtTm&lt;/TD&gt;&lt;TD class="xl63" width="211"&gt;Person&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2296131&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity2&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;22/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;Georgey&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2287402&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity2&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;19/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;Georgey&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2303296&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity1&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;28/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;GeorgRingo&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2282637&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity2&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;15/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;John&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2285235&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity1&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;18/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;John&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2292497&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity2&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;21/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;JohnPaul&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2304394&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity2&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;28/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;JohnRingo&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2296170&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity1&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;22/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;Johny&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2304488&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity1&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;28/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;Paul&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2304454&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity2&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;28/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;Paul&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2276628&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity2&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;13/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;Pauly&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2292481&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity2&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;21/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;Ringo&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="17"&gt;2300131&lt;/TD&gt;&lt;TD class="xl63"&gt;Activity2&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;25/01/2016&lt;/TD&gt;&lt;TD class="xl63"&gt;Ringoy&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I want to get the data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="304" style="width: 484px; height: 305px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="89"&gt;Person&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="65"&gt;Activity2&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="109"&gt;Activity1&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="211"&gt;(Activity2 Act_DtTm) - (Activity1Act_DtTm)&amp;nbsp;&amp;nbsp;&amp;nbsp; OR &lt;STRONG&gt;planTurn&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Georgey&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;do not use&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;GeorgRingo&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;do not use&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;John&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2.932233796&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;JohnPaul&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;do not use&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;JohnRingo&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;do not use&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Johny&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;do not use&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: none;"&gt;Paul&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;-0.007048611&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Pauly&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;do not use&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Ringo&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;do not use&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Ringoy&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;do not use&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a person has Activity1 and an Activity2 I want to subtract the timestamps from each other - this is &lt;STRONG&gt;planTurn&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script works well at the moment - it gives me the values expected - i could let the 'na'&amp;nbsp; be null:&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="640"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" colspan="6" height="17" width="640"&gt;if(((Activity2 Act_DtTm)) -&amp;nbsp; (Activity1Act_DtTm)) &amp;gt;=-1, (((Activity2 Act_DtTm)) - ( (Activity1Act_DtTm))) ,'na')&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However - when I want to do a Box Plot I need an expression -&amp;nbsp;&amp;nbsp; My current expression will not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried &lt;/P&gt;&lt;P&gt;a.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; adding another sql script which will output Person, Activity, DateTime&lt;/P&gt;&lt;P&gt;b.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; using the formula &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;if(Person= Previous(Person), Activity2Act_DtTm - previous(Activity1Act_DtTm)) as planTurn&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However planTurn using this way does not always match what using the formula will give me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would prefer to use the formula - but the values appear to be hard coded - they do do not change with the calculated planTun (that is calculated within the Qlikview script ???)&amp;nbsp; And I cannot show the legend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/112941_Capture.PNG" style="height: 279px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/112942_Capture1.PNG" style="height: 217px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem might be that I need to go back to the design.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 05:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-box-plot-or-redesign-is-the-issue/m-p/1096419#M640274</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-01-29T05:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a box plot - or redesign is the issue?</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-box-plot-or-redesign-is-the-issue/m-p/1096420#M640275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I understand your issue.&lt;/P&gt;&lt;P&gt;Could you upload some sample data (e.g. in an excel file) and what you expect to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 11:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-box-plot-or-redesign-is-the-issue/m-p/1096420#M640275</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-29T11:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with a box plot - or redesign is the issue?</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-a-box-plot-or-redesign-is-the-issue/m-p/1096421#M640276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I have solved it!&amp;nbsp; One problem was bad design.&amp;nbsp; In old database speak I had an ID and the description rather just the ID as the link between 2 tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other problem though is that it is hard to use a box plot graph unless you have a single dimension rather than a calculated/expression.&amp;nbsp; I am still working on that.&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2016 10:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-a-box-plot-or-redesign-is-the-issue/m-p/1096421#M640276</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2016-01-30T10:35:23Z</dc:date>
    </item>
  </channel>
</rss>

