<?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: Straight Table - need set analysis for summary columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833255#M532032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe your data model has a problem.&lt;/P&gt;&lt;P&gt;You should join Diagnosis Code with DiagCd2, DiagCd3 and DiagCd4.&lt;/P&gt;&lt;P&gt;Upload your qvw, please&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 May 2015 14:03:46 GMT</pubDate>
    <dc:creator>mrossoit</dc:creator>
    <dc:date>2015-05-11T14:03:46Z</dc:date>
    <item>
      <title>Straight Table - need set analysis for summary columns</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833254#M532031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a fact table that has 4 fields.&amp;nbsp; Diagnosis Code, Diagnosis Code 2, Diagnosis Code 3 and Diagnosis Code 4.&amp;nbsp; See attached example picture. I would like to create a straight table that gives me the sum of the number of times each code is used in each column.&amp;nbsp; In my example there are 59805 rows and code 7291 is used 74 times as the Primary Diagnosis.&amp;nbsp; If you look at the three boxes below in the picture, you can see that 7291 was used 356 as a secondary diagnosis, 321 as a third diagnosis and 375 as a 4th diagnosis.&amp;nbsp; I would like my straight table to shows those number across the row and allow me to get a total number of conditions where a patient was diagnosis with the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension is Diagnosis Code and the Count of Primary is a simple =count([Diagnosis Code])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, the first row of the table might have&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diagnosis Code 7291, Secondary Code 4019, Third Code as 2724 and Forth Code as 2449&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code numbers will always be unique on the same row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My brain can't come up with the logic to complete the summary formulas for Diag Code 2, 3 and 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help if you have the answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Mike Czerwonky&#xD;
&#xD;
&#xD;
Here is a copy of my QVW sample.  This should give you what you need to see what I am looking to do !&#xD;
&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 13:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833254#M532031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-11T13:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table - need set analysis for summary columns</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833255#M532032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;maybe your data model has a problem.&lt;/P&gt;&lt;P&gt;You should join Diagnosis Code with DiagCd2, DiagCd3 and DiagCd4.&lt;/P&gt;&lt;P&gt;Upload your qvw, please&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 14:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833255#M532032</guid>
      <dc:creator>mrossoit</dc:creator>
      <dc:date>2015-05-11T14:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table - need set analysis for summary columns</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833256#M532033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try below expression with the same dimension&lt;/P&gt;&lt;P&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;Expression1&lt;BR /&gt;&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;count({&amp;lt;DiagCd2-={''}&amp;gt;}[DiagCd2)&lt;/SPAN&gt; &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Expression2&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({&amp;lt;DiagCd3-={''}&amp;gt;}[DiagCd3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Expression3&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({&amp;lt;DiagCd4-={''}&amp;gt;}[DiagCd4)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 14:10:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833256#M532033</guid>
      <dc:creator>santhoo_san</dc:creator>
      <dc:date>2015-05-11T14:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table - need set analysis for summary columns</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833257#M532034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried &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;count(Diag&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;+&lt;BR /&gt;&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;count(Diag2&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&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;count(Diag3&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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;count(Diag4&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 14:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833257#M532034</guid>
      <dc:creator>ramoncova06</dc:creator>
      <dc:date>2015-05-11T14:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table - need set analysis for summary columns</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833258#M532035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you select any of the Diagnosis Codes in the table, it should reduce to one row with the summary for each of the columns.&amp;nbsp; However, selecting the primary will always equal zero for the 2,3 and 4 columns as there can be no duplicates.&amp;nbsp; The set analysis needs to consider the whole data set while matching the primary dimension for columns for 2, 3 and 4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 14:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833258#M532035</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-11T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table - need set analysis for summary columns</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833259#M532036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a solution to my problem.&amp;nbsp; Many thanks to @Rob &lt;SPAN&gt;&lt;SPAN&gt;Wunderlich&lt;/SPAN&gt;&lt;/SPAN&gt; for providing this example and guiding me towards solving my challenge.&amp;nbsp; In this case, a resident load was used to create an auxiliary table.&amp;nbsp; This table took the values from my four columns and combined them into one called Diagnosis Code.&amp;nbsp; The load process also created a position column with the appropriate column 1 to 4.&amp;nbsp; Then, a sum formula could be used to determine position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this logic, I was able to plug this code method back into my app with 23 million rows and meet my end user requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this follow up helps someone else. !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2015 12:34:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-need-set-analysis-for-summary-columns/m-p/833259#M532036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-14T12:34:30Z</dc:date>
    </item>
  </channel>
</rss>

