<?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: Conditional Expression Challenge in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583320#M42650</link>
    <description>&lt;P&gt;Ideally I would resolve this in the data model. However, check if the below expression helps:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sum(if(DIM1= CODE or DIM2= CODE, MEASURE))&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 12:17:13 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2019-05-22T12:17:13Z</dc:date>
    <item>
      <title>Conditional Expression Challenge</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583292#M42642</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create an expression that calculates a measure depending on criteria defined by the target. The goal is a table that shows all the targets with its measures to check if there are any violations.&lt;/P&gt;&lt;P&gt;The data model consists of two tables connected with an ID and the date as the key. Both tables use the same dimensions and codes, but those fields cannot be connected (because of a consequential multiplication of the data).&lt;/P&gt;&lt;P&gt;Here a simplified example of the problem:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Qlik Community1.png" style="width: 596px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12482iF97B65F218B1F204/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik Community1.png" alt="Qlik Community1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following formula works fine, if an ID is selected:&lt;/P&gt;&lt;P&gt;sum(if($(='['&amp;amp;$(vField)&amp;amp;']')= CODE, MEASURE))&lt;/P&gt;&lt;P&gt;vField = FIELD&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Qlik Community2.png" style="width: 706px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12483i573862A167758F21/image-size/large?v=v2&amp;amp;px=999" role="button" title="Qlik Community2.png" alt="Qlik Community2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the goal is to &lt;STRONG&gt;show all the IDs in the same table&lt;/STRONG&gt; without a selection (therefore, set analysis is not an option).&lt;/P&gt;&lt;P&gt;How does the formula need to be changed to acchieve this?&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:38:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583292#M42642</guid>
      <dc:creator>Meret</dc:creator>
      <dc:date>2021-12-20T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Challenge</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583298#M42645</link>
      <description>Very interesting! Hope to see the suggestions.</description>
      <pubDate>Wed, 22 May 2019 11:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583298#M42645</guid>
      <dc:creator>Hatus</dc:creator>
      <dc:date>2019-05-22T11:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Challenge</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583300#M42646</link>
      <description>How do you define the variable? Could you share your sample app?</description>
      <pubDate>Wed, 22 May 2019 11:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583300#M42646</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-05-22T11:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Challenge</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583303#M42647</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp; Tresesco&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for the fast response.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The variable is defined as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vField = FIELD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You can find the app in the attachment.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 11:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583303#M42647</guid>
      <dc:creator>Meret</dc:creator>
      <dc:date>2019-05-22T11:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Challenge</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583320#M42650</link>
      <description>&lt;P&gt;Ideally I would resolve this in the data model. However, check if the below expression helps:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sum(if(DIM1= CODE or DIM2= CODE, MEASURE))&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 12:17:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583320#M42650</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-05-22T12:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Expression Challenge</title>
      <link>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583361#M42653</link>
      <description>&lt;P&gt;Thanks for your solution.&lt;/P&gt;&lt;P&gt;Sorry, the example was not clear enough.&amp;nbsp;&amp;nbsp;There is an updated app in the attachment.&lt;/P&gt;&lt;P&gt;In the real app this approach does not work, because the values in the field CODE are not unique. For example, '100' is also used in other dimensions (see DIM3 in the updated app), where it stands for another criteria.&lt;/P&gt;&lt;P&gt;Also, there are nine different dimensions in the real application and in the future, there may be more, so the field must be&amp;nbsp; kept variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 13:04:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Conditional-Expression-Challenge/m-p/1583361#M42653</guid>
      <dc:creator>Meret</dc:creator>
      <dc:date>2019-05-22T13:04:35Z</dc:date>
    </item>
  </channel>
</rss>

