<?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 Check if for dimension value exists already another expression value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1654200#M448034</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I've tried every option I know so I hope somebody can help me out.&lt;/P&gt;&lt;P&gt;First of all : I need to achieve this by set expression, so calculations in the script are not a good solution.&lt;/P&gt;&lt;P&gt;I've got a chart(table) with &lt;EM&gt;Date&lt;/EM&gt; (dim), &lt;EM&gt;Order number&lt;/EM&gt; (dim), &lt;EM&gt;Line number&lt;/EM&gt; (dim), &lt;EM&gt;Article number&lt;/EM&gt; (dim), some other dimensions and some expressions like &lt;EM&gt;quantity&lt;/EM&gt;, &lt;EM&gt;value&lt;/EM&gt;, etc.&lt;/P&gt;&lt;P&gt;This chart is sorted by date.&lt;/P&gt;&lt;P&gt;Important: This chart is already pre-filtered by adding some show_ if-conditions to multiple dimensions. So the count conditions, if used in expressions, must count in the resulting chart and not in the database set of records.&lt;/P&gt;&lt;P&gt;(I)&lt;/P&gt;&lt;P&gt;Now I want to have an expression column that can check for every Article number if it only exists once or not. If not I want also to&amp;nbsp; determine what is the first occurence in the table.&lt;/P&gt;&lt;P&gt;I'm thinking of creating a new field that combines Order number and Order line so I have a unique field (let's say "NR_LINE") and I want to combine that with a count for every article number how many "NR_LINE" there are.&lt;/P&gt;&lt;P&gt;If this count comes op with a result of more than "1" then I need to determine if this is the first occurence or nor (maybe something with below() or above() )&lt;/P&gt;&lt;P&gt;(II)&lt;/P&gt;&lt;P&gt;If we get part (I) right I would also like to take it somewhat further and for every article number that comes up the 2nd time or more, it should mention the Order Number of the previous occurence (2nd time Article number shows 1st time Order number, 3rd shows 2nd, and so on)&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Davy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 19:31:24 GMT</pubDate>
    <dc:creator>davymichiels</dc:creator>
    <dc:date>2024-11-16T19:31:24Z</dc:date>
    <item>
      <title>Check if for dimension value exists already another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1654200#M448034</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I've tried every option I know so I hope somebody can help me out.&lt;/P&gt;&lt;P&gt;First of all : I need to achieve this by set expression, so calculations in the script are not a good solution.&lt;/P&gt;&lt;P&gt;I've got a chart(table) with &lt;EM&gt;Date&lt;/EM&gt; (dim), &lt;EM&gt;Order number&lt;/EM&gt; (dim), &lt;EM&gt;Line number&lt;/EM&gt; (dim), &lt;EM&gt;Article number&lt;/EM&gt; (dim), some other dimensions and some expressions like &lt;EM&gt;quantity&lt;/EM&gt;, &lt;EM&gt;value&lt;/EM&gt;, etc.&lt;/P&gt;&lt;P&gt;This chart is sorted by date.&lt;/P&gt;&lt;P&gt;Important: This chart is already pre-filtered by adding some show_ if-conditions to multiple dimensions. So the count conditions, if used in expressions, must count in the resulting chart and not in the database set of records.&lt;/P&gt;&lt;P&gt;(I)&lt;/P&gt;&lt;P&gt;Now I want to have an expression column that can check for every Article number if it only exists once or not. If not I want also to&amp;nbsp; determine what is the first occurence in the table.&lt;/P&gt;&lt;P&gt;I'm thinking of creating a new field that combines Order number and Order line so I have a unique field (let's say "NR_LINE") and I want to combine that with a count for every article number how many "NR_LINE" there are.&lt;/P&gt;&lt;P&gt;If this count comes op with a result of more than "1" then I need to determine if this is the first occurence or nor (maybe something with below() or above() )&lt;/P&gt;&lt;P&gt;(II)&lt;/P&gt;&lt;P&gt;If we get part (I) right I would also like to take it somewhat further and for every article number that comes up the 2nd time or more, it should mention the Order Number of the previous occurence (2nd time Article number shows 1st time Order number, 3rd shows 2nd, and so on)&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Davy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 19:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1654200#M448034</guid>
      <dc:creator>davymichiels</dc:creator>
      <dc:date>2024-11-16T19:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Check if for dimension value exists already another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1656019#M448267</link>
      <description>&lt;P&gt;Nobody has any idea?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 13:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1656019#M448267</guid>
      <dc:creator>davymichiels</dc:creator>
      <dc:date>2019-12-10T13:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Check if for dimension value exists already another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1656768#M448373</link>
      <description>&lt;P&gt;Generally it is most helpful if you attach your source data or QVW you have along with what you want to see, otherwise not betting you are going to get a response from anyone.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 21:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1656768#M448373</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-12-11T21:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Check if for dimension value exists already another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1656797#M448378</link>
      <description>&lt;P&gt;Can you post a sample QVW?&amp;nbsp; I'm a bit thrown by&amp;nbsp;&lt;/P&gt;&lt;P&gt;"-&lt;SPAN&gt;Important: This chart is already pre-filtered by adding some show_ if-conditions to multiple dimensions. So the count conditions, if used in expressions, must count in the resulting chart and not in the database set of records."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 23:11:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1656797#M448378</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-12-11T23:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Check if for dimension value exists already another expression value</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1656884#M448387</link>
      <description>&lt;P&gt;I've attached a sample file to show you what I need to achieve&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 07:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-for-dimension-value-exists-already-another-expression/m-p/1656884#M448387</guid>
      <dc:creator>davymichiels</dc:creator>
      <dc:date>2019-12-12T07:10:05Z</dc:date>
    </item>
  </channel>
</rss>

