<?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: applying logic based on the dimension values in the table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/applying-logic-based-on-the-dimension-values-in-the-table/m-p/1788930#M61614</link>
    <description>&lt;P&gt;Perhaps this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Value)/(Max(Month)-1)&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 07 Mar 2021 08:00:50 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2021-03-07T08:00:50Z</dc:date>
    <item>
      <title>applying logic based on the dimension values in the table</title>
      <link>https://community.qlik.com/t5/App-Development/applying-logic-based-on-the-dimension-values-in-the-table/m-p/1788929#M61613</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a scenario whereby I need to put a logical condition in&amp;nbsp; a measure expression based on the dimension values in the same table chart. For example, I have below data set in my data model:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Year&lt;/TD&gt;&lt;TD&gt;Month&lt;/TD&gt;&lt;TD&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2013&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2013&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2014&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2014&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;4000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to achieve a KPI in the straight/pivot chart whereby I need to apply a logic on first year rows(i.e. rows having year 2013). So, what I want to do in the expression is something like: if year=2013, Value/Month-1. So, the evaluation of this should be 1000/0, 2000/1. Here I am substracting 1 from each value of the column Month refering the Year column value 2013 only. How&amp;nbsp; exactly I can write this in a straight/pivot chart expression having the dimensions Year and Month in chart as dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="Qlik Sense Desktop" id="qlikSenseDesktop"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/applying-logic-based-on-the-dimension-values-in-the-table/m-p/1788929#M61613</guid>
      <dc:creator>taha_mansoor</dc:creator>
      <dc:date>2021-12-20T21:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: applying logic based on the dimension values in the table</title>
      <link>https://community.qlik.com/t5/App-Development/applying-logic-based-on-the-dimension-values-in-the-table/m-p/1788930#M61614</link>
      <description>&lt;P&gt;Perhaps this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Value)/(Max(Month)-1)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 08:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/applying-logic-based-on-the-dimension-values-in-the-table/m-p/1788930#M61614</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2021-03-07T08:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: applying logic based on the dimension values in the table</title>
      <link>https://community.qlik.com/t5/App-Development/applying-logic-based-on-the-dimension-values-in-the-table/m-p/1788931#M61615</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5533"&gt;@Anil_Babu_Samineni&lt;/a&gt;&amp;nbsp;thanks for the response but I need to get the logic on Min Year, so even I replace the Max with Min and Month with Year in your expression above, it will take the Year value based on app selections. What if Year has not been selected. I need to apply the logic irrespective of selections i.e. based on dimension value of each row of the straight/pivot table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 08:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/applying-logic-based-on-the-dimension-values-in-the-table/m-p/1788931#M61615</guid>
      <dc:creator>taha_mansoor</dc:creator>
      <dc:date>2021-03-07T08:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: applying logic based on the dimension values in the table</title>
      <link>https://community.qlik.com/t5/App-Development/applying-logic-based-on-the-dimension-values-in-the-table/m-p/1788995#M61621</link>
      <description>&lt;P&gt;You mean this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;FONT color="#FF0000"&gt;{&amp;lt;Year={$(=Min({1}Year))}&lt;/FONT&gt;&amp;gt;}&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;Value)/(Max(&lt;FONT color="#FF0000"&gt;{&amp;lt;Year={$(=Min({1}Year))}&lt;/FONT&gt;Month)-1)&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 16:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/applying-logic-based-on-the-dimension-values-in-the-table/m-p/1788995#M61621</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2021-03-07T16:41:03Z</dc:date>
    </item>
  </channel>
</rss>

