<?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 Select specific version of business data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-specific-version-of-business-data/m-p/1399094#M424436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I asked a question yesterday (which was answered - thank you!) about displaying specific 'version' of business data. My example yesterday was about customer information. When a person moves then we get two rows of data, one with the old address and one with the new address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution I was given works fine for one set of data where I have a single set of values to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I now have to display multiple rows of data, each of which link to a specific 'version' of the business data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Order information and for each Order there may be multiple Items. So Order#1 includes 4 items with different quantities, Order#2 includes 3 items each with different quantities etc. And then an Order gets changed, which is where the different 'version' comes into play.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, Order#1 originally includes Item = 100 with a quantity of 5. Then the customer changes that to a quantity of 10. We now have two versions of Order#1. Some sample raw data is shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="384"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;order_id&lt;/TD&gt;&lt;TD width="64"&gt;order_ver&lt;/TD&gt;&lt;TD width="64"&gt;item_nbr&lt;/TD&gt;&lt;TD width="64"&gt;qty&lt;/TD&gt;&lt;TD colspan="2" width="128"&gt;order_comment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;TD colspan="2"&gt;need blue ones&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;110&lt;/TD&gt;&lt;TD align="right"&gt;23&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD colspan="2"&gt;pre-packaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;TD colspan="2"&gt;want red ones&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;110&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;130&lt;/TD&gt;&lt;TD align="right"&gt;45&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;140&lt;/TD&gt;&lt;TD align="right"&gt;9&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;110&lt;/TD&gt;&lt;TD align="right"&gt;23&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;110&lt;/TD&gt;&lt;TD align="right"&gt;22&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;14&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need my user to be able to select an Order_ID and two Order_ver's. There should be two separate lists (tables) displayed, one for one 'version' and the second for the other 'version'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that I can use a 'Table Box' because I can't find a way to exclude certain rows from the display. Using this type of display I have to use real fields, I can't add an expression as a displayed column. So I thought to use a 'Straight Table' with a Calculated Dimension as my control to show/hide rows as required and then use the 'Suppress When Value Is Null' option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot get the 'calculated dimension' syntax to generate anything other than "Error in calculated dimension". When I edit the 'calculated dimension' the 'Edit Expression' dialog shows no red lines, errors etc, so I'm guessing that the basic syntax is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also included a calculated expression using exactly the same syntax. That displays a value or Null exactly as I'd expect (and want) but it seems there is something different about using this logic in a Calculated Dimension. And I understand that Dimensions and Expressions are different, but the subtle difference here is eluding me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a small qvw file which includes the above data, my straight table where the calculated expression displays correctly but the calculated dimension gives this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the qvw file also includes the 'single value' selection and display which works fine.That can be largely ignored for this discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, all help greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Oct 2017 09:51:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-05T09:51:42Z</dc:date>
    <item>
      <title>Select specific version of business data</title>
      <link>https://community.qlik.com/t5/QlikView/Select-specific-version-of-business-data/m-p/1399094#M424436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I asked a question yesterday (which was answered - thank you!) about displaying specific 'version' of business data. My example yesterday was about customer information. When a person moves then we get two rows of data, one with the old address and one with the new address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution I was given works fine for one set of data where I have a single set of values to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I now have to display multiple rows of data, each of which link to a specific 'version' of the business data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have Order information and for each Order there may be multiple Items. So Order#1 includes 4 items with different quantities, Order#2 includes 3 items each with different quantities etc. And then an Order gets changed, which is where the different 'version' comes into play.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, Order#1 originally includes Item = 100 with a quantity of 5. Then the customer changes that to a quantity of 10. We now have two versions of Order#1. Some sample raw data is shown below.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="384"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;order_id&lt;/TD&gt;&lt;TD width="64"&gt;order_ver&lt;/TD&gt;&lt;TD width="64"&gt;item_nbr&lt;/TD&gt;&lt;TD width="64"&gt;qty&lt;/TD&gt;&lt;TD colspan="2" width="128"&gt;order_comment&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;TD colspan="2"&gt;need blue ones&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;110&lt;/TD&gt;&lt;TD align="right"&gt;23&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD colspan="2"&gt;pre-packaged&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;15&lt;/TD&gt;&lt;TD colspan="2"&gt;want red ones&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;110&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;130&lt;/TD&gt;&lt;TD align="right"&gt;45&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;140&lt;/TD&gt;&lt;TD align="right"&gt;9&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD align="right"&gt;110&lt;/TD&gt;&lt;TD align="right"&gt;23&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;TD align="right"&gt;110&lt;/TD&gt;&lt;TD align="right"&gt;22&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;TD align="right"&gt;14&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3000&lt;/TD&gt;&lt;TD align="right"&gt;3&lt;/TD&gt;&lt;TD align="right"&gt;120&lt;/TD&gt;&lt;TD align="right"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need my user to be able to select an Order_ID and two Order_ver's. There should be two separate lists (tables) displayed, one for one 'version' and the second for the other 'version'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think that I can use a 'Table Box' because I can't find a way to exclude certain rows from the display. Using this type of display I have to use real fields, I can't add an expression as a displayed column. So I thought to use a 'Straight Table' with a Calculated Dimension as my control to show/hide rows as required and then use the 'Suppress When Value Is Null' option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot get the 'calculated dimension' syntax to generate anything other than "Error in calculated dimension". When I edit the 'calculated dimension' the 'Edit Expression' dialog shows no red lines, errors etc, so I'm guessing that the basic syntax is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also included a calculated expression using exactly the same syntax. That displays a value or Null exactly as I'd expect (and want) but it seems there is something different about using this logic in a Calculated Dimension. And I understand that Dimensions and Expressions are different, but the subtle difference here is eluding me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached a small qvw file which includes the above data, my straight table where the calculated expression displays correctly but the calculated dimension gives this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the qvw file also includes the 'single value' selection and display which works fine.That can be largely ignored for this discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As always, all help greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 09:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-specific-version-of-business-data/m-p/1399094#M424436</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-05T09:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Select specific version of business data</title>
      <link>https://community.qlik.com/t5/QlikView/Select-specific-version-of-business-data/m-p/1399095#M424437</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've managed to get this sorted and thought that I would share my solution for anyone else who has the same requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had intended to attach a working qvw file but I can't see an 'attach' button/link when replying to a post. Sorry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used two 'straight tables' for the display, one is for the lowest selected version and the other is for the highest selected version.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Low Selected Version" display&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Under 'Layout / Show' I select Conditional and use the following expression: Count(distinct( order_id ))= 1 and GetPossibleCount(order_ver) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Calculated Dimension (labelled as DIM_LowVerInd):&lt;/P&gt;&lt;P&gt;- the expression is: =If(order_ver = Min(TOTAL Aggr(Min({$}order_ver), order_id)),order_ver,null())&lt;/P&gt;&lt;P&gt;- for this calculated dimension I tick the 'Suppress when value is Null' box&lt;/P&gt;&lt;P&gt;- for this calculated dimension i have selected 'hide column' on the Presentation tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"High Selected Version" display&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Under 'Layout / Show' I select Conditional and use the following expression: Count(distinct( order_id ))= 1 and GetPossibleCount(order_ver) = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Calculated Dimension (labelled as DIM_HighVerInd):&lt;/P&gt;&lt;P&gt;- the expression is: =If(order_ver = Max(TOTAL Aggr(Max({$}order_ver), order_id)),order_ver,null())&lt;/P&gt;&lt;P&gt;- for this calculated dimension I tick the 'Suppress when value is Null' box&lt;/P&gt;&lt;P&gt;- for this calculated dimension i have selected 'hide column' on the Presentation tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this may prove useful to someone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Oct 2017 15:05:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-specific-version-of-business-data/m-p/1399095#M424437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-07T15:05:44Z</dc:date>
    </item>
  </channel>
</rss>

