<?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 Calculated dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176737#M44614</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNoSpacing"&gt;Hi,&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;I apologize if this is a really basic question. I am scheduled to go to Designer training next month.&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;I need to create a chart that shows sales rep activity based on certain transactions, not all transactions. I think what I need to do is created a calculated dimension. When creating a chart, in the dimensions window I've selected sales rep. I also need to restrict the transaction field to certain values. This is where I'm stuck and I'm not sure of the syntax. I need the transaction_id field to be restricted to the following values:&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;BOOK_WIRE_1LINK&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;WIRE_DOMESTIC_1LINK&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;WIRE_INTERNATIONAL_1LINK&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;ADVANCE_1LINK&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;Thanks,&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;Shannon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Nov 2010 22:44:55 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-08T22:44:55Z</dc:date>
    <item>
      <title>Calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176737#M44614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNoSpacing"&gt;Hi,&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;I apologize if this is a really basic question. I am scheduled to go to Designer training next month.&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;I need to create a chart that shows sales rep activity based on certain transactions, not all transactions. I think what I need to do is created a calculated dimension. When creating a chart, in the dimensions window I've selected sales rep. I also need to restrict the transaction field to certain values. This is where I'm stuck and I'm not sure of the syntax. I need the transaction_id field to be restricted to the following values:&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;BOOK_WIRE_1LINK&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;WIRE_DOMESTIC_1LINK&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;WIRE_INTERNATIONAL_1LINK&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;ADVANCE_1LINK&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;Thanks,&lt;/P&gt;&lt;P class="MsoNoSpacing"&gt;Shannon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 22:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176737#M44614</guid>
      <dc:creator />
      <dc:date>2010-11-08T22:44:55Z</dc:date>
    </item>
    <item>
      <title>Calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176738#M44615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the transaction_id also a dimension? If so, the calculated dimension would look like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(match(transaction_id,'BOOK_WIRE_1LINK', 'WIRE_DOMESTIC_1LINK', 'WIRE_INTERNATIONAL_1LINK', 'ADVANCE_1LINK'),transaction_id)&lt;/P&gt;&lt;P&gt;However, I suspect the performance wouldn't be very good. Also, you might not have transaction_id as a dimension. Either way, I would instead handle it with set analysis in the expressions. For instance, if you had this expression in the chart:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum(Amount)&lt;/P&gt;&lt;P&gt;You would change it to this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;transaction_id*={'BOOK_WIRE_1LINK', 'WIRE_DOMESTIC_1LINK', 'WIRE_INTERNATIONAL_1LINK', 'ADVANCE_1LINK'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;That should be very efficient.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 22:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176738#M44615</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-08T22:54:46Z</dc:date>
    </item>
    <item>
      <title>Calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176739#M44616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;Transaction ID is a dimension. The 2 dimensions are sales rep and transaction ID. The measure is the transaction count. I'm going to try your first approach and see if it gets me what I need.&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;Thanks,&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;Shannon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 23:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176739#M44616</guid>
      <dc:creator />
      <dc:date>2010-11-08T23:02:54Z</dc:date>
    </item>
    <item>
      <title>Calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176740#M44617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;More on this:&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;What I'm trying to do is something like:&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;If TRANSACTION_ID IN ''BOOK_WIRE_1LINK', 'WIRE_DOMESTIC_1LINK', 'WIRE_INTERNATIONAL_1LINK', 'ADVANCE_1LINK' then SUM(TXN_COUNT) else 0&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;I think I need to go to Chart Properties -&amp;gt; Expressions and edit the expression but I'm not sure of the syntax.&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;Thanks,&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;Shannon&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176740#M44617</guid>
      <dc:creator />
      <dc:date>2010-11-09T17:03:42Z</dc:date>
    </item>
    <item>
      <title>Calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176741#M44618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, edit the expression. This should work:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;if(match(TRANSACTION_ID, 'BOOK_WIRE_1LINK', 'WIRE_DOMESTIC_1LINK', 'WIRE_INTERNATIONAL_1LINK', 'ADVANCE_1LINK'), sum(TXN_COUNT), 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176741#M44618</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-09T17:23:37Z</dc:date>
    </item>
    <item>
      <title>Calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176742#M44619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I edited the expression and pasted in&lt;/P&gt;&lt;P&gt;if(match(SYS_ID, 'BOOK_WIRE_1LINK', 'WIRE_DOMESTIC_1LINK', 'WIRE_INTERNATIONAL_1LINK', 'ADVANCE_1LINK'), sum(TXN_COUNT), 0)&lt;/P&gt;&lt;P&gt;and my bar chart went from displaying data to saying 'No data to display' although I know that there is data there. Instead of TRANSACTION_ID its actually SYS_ID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 17:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176742#M44619</guid>
      <dc:creator />
      <dc:date>2010-11-09T17:44:46Z</dc:date>
    </item>
    <item>
      <title>Calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176743#M44620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, now we're back to my earlier question - is that field (SYS_ID now) a dimension in the table?&lt;/P&gt;&lt;P&gt;I'm going to guess that the answer is now "no" intead of the previous "yes". If so, then you can have more than one SYS_ID per line of your chart, which will be treated as null in the comparison, so you'll get 0, so all rows will be suppressed, so I can see it saying "no data to display" though I'm not certain that's the problem.&lt;/P&gt;&lt;P&gt;I suggest trying the expression I gave earlier, with minor modifications to use your real field names:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;sum({&amp;lt;SYS_ID*={'BOOK_WIRE_1LINK', 'WIRE_DOMESTIC_1LINK', 'WIRE_INTERNATIONAL_1LINK', 'ADVANCE_1LINK'}&amp;gt;} TXN_COUNT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 18:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176743#M44620</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-09T18:23:31Z</dc:date>
    </item>
    <item>
      <title>Calculated dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176744#M44621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;SYS_ID is not a dimension. The sum of the TXN_COUNT related to the SYS_IDs I am trying to restrict is what I am trying to measure. The chart will not be displaying each value for SYS_ID. The only dimension is SALES_REP with the measure (Y axis) being the sum of the TXN_COUNT for each SALES_REP.&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;I'll try what you've posted and confirm that the numbers are correct.&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;Thanks,&lt;/P&gt;&lt;P class="MsoNoSpacing" style="margin:0in 0in 0pt;"&gt;Shannon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 18:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimensions/m-p/176744#M44621</guid>
      <dc:creator />
      <dc:date>2010-11-09T18:31:24Z</dc:date>
    </item>
  </channel>
</rss>

