<?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 New User needing an epiphany! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280168#M1183021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good that you could get the first part cleared out. But spreading the volumes and values, I didnt understand. In your image A.Val + B.Val = Color Val, which means you already spread it invoice by invoice. Ofcourse formulation for &lt;STRONG&gt;Prorata to the quantity&lt;/STRONG&gt; is to be defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand you need to group the Volume and Value by invoice. If thats what you are looking for try using TOTAL keyword which is analogus to group by in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Oct 2011 12:16:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-31T12:16:57Z</dc:date>
    <item>
      <title>New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280164#M1183017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first post... perhaps of many!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new user of QlikView and it is my desire to introduce the software as the BI standard for the company I work for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have encountered my first problem that I am struggling to get to grips with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe set analysis is the solution, but I cannot quite get my head around the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the attached image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Black text is an extract of data (a single invoice) showing line detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our product range (paint) includes items which are supplied as multipart sets, although each part is invoiced separately on the face of the invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In such cases, I would like to combine the data to give mixed totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The route I have chosen to take is a Straight Table, allocating the catalysts to the colours where appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then intend to calculate line totals within the table and hide any extraneous information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(The reason being that this will also be issued in list format as a report.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have simply created line sums initially, but then taken this to the next stage by creating sums for Col types only (A Totals in &lt;STRONG style="color: #800080;"&gt;purple&lt;/STRONG&gt;) and Cat types only (B Totals in &lt;STRONG style="color: #ff0000;"&gt;red&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what I really need is to replace the red section with what I have shown (using Excel) in &lt;STRONG style="color: #0000ff;"&gt;blue&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is where I need help if you are able.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that set analysis is the answer, but if we have to delve into script, well I'll take that as an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also hope I have given a clear enough explanation of my problem - but if you need anymore details, please leave a reply and I'll try to fill in any gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff6600;"&gt;&lt;STRONG&gt;&lt;EM&gt;We are using QlikView for Windows Version 9.00.7646.9 SR6&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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;&lt;IMG alt="QlikViewQuery.bmp" class="jive-image-thumbnail jive-image" height="185" onclick="" src="https://community.qlik.com/legacyfs/online/8148_QlikViewQuery.bmp" width="905" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 15:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280164#M1183017</guid>
      <dc:creator />
      <dc:date>2011-10-27T15:18:33Z</dc:date>
    </item>
    <item>
      <title>New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280165#M1183018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; if(Not isNull(Catalyst),sum(qty)) will do the job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 16:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280165#M1183018</guid>
      <dc:creator />
      <dc:date>2011-10-27T16:04:29Z</dc:date>
    </item>
    <item>
      <title>New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280166#M1183019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course it does, Kiran... I was overcomplicating things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just need to get my head round the Functions now to get the pro rate volumes and values!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the kickstart... much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 09:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280166#M1183019</guid>
      <dc:creator />
      <dc:date>2011-10-28T09:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280167#M1183020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've spent more than a day trying to figure this out, but I need help calculating the last two colums of the Red area in my example above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought I would be able to do this, but I keep hitting brick walls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be clear, the Catalyst total qty will (should) always equal the Colour total qty. (A Colour to A Catalyst etc.) but I need to spread the Volumes and Values pro rata to the quantity - invoice by invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can make QV select the set of ALL current data or just the set of current line data, but I cannot make it choose the invoice data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please be aware, this needs to be a generic solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will continue to bash away at it, but if any of you kind people can give me at kick in the right direction I would, of course, be grateful for all assistance received before my head explodes!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 09:07:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280167#M1183020</guid>
      <dc:creator />
      <dc:date>2011-10-31T09:07:24Z</dc:date>
    </item>
    <item>
      <title>New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280168#M1183021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good that you could get the first part cleared out. But spreading the volumes and values, I didnt understand. In your image A.Val + B.Val = Color Val, which means you already spread it invoice by invoice. Ofcourse formulation for &lt;STRONG&gt;Prorata to the quantity&lt;/STRONG&gt; is to be defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand you need to group the Volume and Value by invoice. If thats what you are looking for try using TOTAL keyword which is analogus to group by in SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 12:16:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280168#M1183021</guid>
      <dc:creator />
      <dc:date>2011-10-31T12:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280169#M1183022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again, Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am having is that the source data does not match Cat and Col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create (and where necessary, maintain) a table within the QV datasource (an MS Access Database) to "match" catalysts to colours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once done, I need to report "mixed" totals, ignoring the underlying data structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I chose to do this in a straight table as this most resembles both a spreadsheet, and the current format of document issued to our sales teams (this cannot perform the prorata calculation either... same issues).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using AGGR, which seems to almost get me there, but I think I need to come up with some novel combination of AGGR and Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping it's not that novel actually, and that someone in the community has already resolved this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am also wondering if I need to be using a pivot table rather then straight. Any opinion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The real frustration is that I know I could do this in Access in about 30 miuntes flat... but that rather defeats the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm &lt;EM&gt;sure &lt;/EM&gt;there must be a QV solution!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ah well... back to the coal-face.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8-)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 12:31:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280169#M1183022</guid>
      <dc:creator />
      <dc:date>2011-10-31T12:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280170#M1183023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dave,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post your application (or sample of that) here? If not possible atleast try to share snapshots/excel of your QV data model and desired result. I will try to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 12:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280170#M1183023</guid>
      <dc:creator />
      <dc:date>2011-10-31T12:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280171#M1183024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yet again, Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really appeciate your efforts here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to do the former, so please find a excel file attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this gives you what you asked for!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 13:18:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280171#M1183024</guid>
      <dc:creator />
      <dc:date>2011-10-31T13:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280172#M1183025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Phew, that was a bit complex to understand. Enclosed the required output and matched it with excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I did:&lt;/P&gt;&lt;P&gt;In script created three fields. Computed as requested with set analysis and TOTAL keyword. Since the Mixed expressions are bit complex I broke them down to three more expressions and disabled them (for you to understand if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 14:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280172#M1183025</guid>
      <dc:creator />
      <dc:date>2011-10-31T14:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280173#M1183026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow! Many thanks for your efforts, Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I get most of that, but I'll invest some time deconstructing and learning!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 14:23:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280173#M1183026</guid>
      <dc:creator />
      <dc:date>2011-10-31T14:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: New User needing an epiphany!</title>
      <link>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280174#M1183027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Missed one more thing, changed the total mode from "Expression Total" to "sum of rows" for both the mixed functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 14:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/New-User-needing-an-epiphany/m-p/280174#M1183027</guid>
      <dc:creator />
      <dc:date>2011-10-31T14:26:54Z</dc:date>
    </item>
  </channel>
</rss>

