<?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 Create straight table with counts from the same dimension? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-straight-table-with-counts-from-the-same-dimension/m-p/638509#M543096</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;&lt;/P&gt;&lt;P&gt;I'm using a Custom Dimension to create a Straight Table that shows specific counts from my database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the heart of the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;IF([IVR_Payment Columns]='Payment Succeeded',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt; sum(AGGR(sum({&amp;lt;$(='['&amp;amp;[~tz]&amp;amp;' Date]')={"&amp;gt;=$(=Vstartdate)&amp;lt;=$(=Venddate)"}, event={'Good Payment'}&amp;gt;} event_value),[Call Key],event_value))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;IF([IVR_Payment Columns]='Payment Failed',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;sum(AGGR(sum({&amp;lt;$(='['&amp;amp;[~tz]&amp;amp;' Date]')={"&amp;gt;=$(=Vstartdate)&amp;lt;=$(=Venddate)"}, event={'Bad Payment'}&amp;gt;} event_value),[Call Key],event_value))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Looking at the raw data, I expect to see 10000 Succeeded, and 500 Failed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;When I view the report, I see this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Payment Succeeded 10,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Payment Failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;If I replace the second sum with the first, I get this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Payment Succeeded 500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Payment Failed 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;I'm able to put several different event strings into the first expression to get their counts, but no matter what, I can't get anything to appear in the second expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;However, if I put them in completely separate charts, they appear just fine.&amp;nbsp; Can I put multiple calculations across similar tables in a single Straight Table?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2014 21:52:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-03T21:52:08Z</dc:date>
    <item>
      <title>Create straight table with counts from the same dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-straight-table-with-counts-from-the-same-dimension/m-p/638509#M543096</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;&lt;/P&gt;&lt;P&gt;I'm using a Custom Dimension to create a Straight Table that shows specific counts from my database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the heart of the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;IF([IVR_Payment Columns]='Payment Succeeded',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt; sum(AGGR(sum({&amp;lt;$(='['&amp;amp;[~tz]&amp;amp;' Date]')={"&amp;gt;=$(=Vstartdate)&amp;lt;=$(=Venddate)"}, event={'Good Payment'}&amp;gt;} event_value),[Call Key],event_value))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;IF([IVR_Payment Columns]='Payment Failed',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;sum(AGGR(sum({&amp;lt;$(='['&amp;amp;[~tz]&amp;amp;' Date]')={"&amp;gt;=$(=Vstartdate)&amp;lt;=$(=Venddate)"}, event={'Bad Payment'}&amp;gt;} event_value),[Call Key],event_value))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Looking at the raw data, I expect to see 10000 Succeeded, and 500 Failed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;When I view the report, I see this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Payment Succeeded 10,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Payment Failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;If I replace the second sum with the first, I get this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Payment Succeeded 500&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;Payment Failed 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;I'm able to put several different event strings into the first expression to get their counts, but no matter what, I can't get anything to appear in the second expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial;"&gt;However, if I put them in completely separate charts, they appear just fine.&amp;nbsp; Can I put multiple calculations across similar tables in a single Straight Table?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 21:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-straight-table-with-counts-from-the-same-dimension/m-p/638509#M543096</guid>
      <dc:creator />
      <dc:date>2014-06-03T21:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create straight table with counts from the same dimension?</title>
      <link>https://community.qlik.com/t5/QlikView/Create-straight-table-with-counts-from-the-same-dimension/m-p/638510#M543097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to add the NODISTINCT qualifier to the aggr() functions, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial;"&gt;IF([IVR_Payment Columns]='Payment Succeeded',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial;"&gt;sum(AGGR(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt; sum({&amp;lt;$(='['&amp;amp;[~tz]&amp;amp;' Date]')={"&amp;gt;=$(=Vstartdate)&amp;lt;=$(=Venddate)"}, event={'Good Payment'}&amp;gt;} event_value),[Call Key],event_value))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial;"&gt;IF([IVR_Payment Columns]='Payment Failed',&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial;"&gt;sum(AGGR(&lt;STRONG&gt;NODISTINCT&lt;/STRONG&gt; sum({&amp;lt;$(='['&amp;amp;[~tz]&amp;amp;' Date]')={"&amp;gt;=$(=Vstartdate)&amp;lt;=$(=Venddate)"}, event={'Bad Payment'}&amp;gt;} event_value),[Call Key],event_value))&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: arial;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 22:41:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-straight-table-with-counts-from-the-same-dimension/m-p/638510#M543097</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-06-03T22:41:18Z</dc:date>
    </item>
  </channel>
</rss>

