<?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 dimension if with variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dimension-if-with-variable/m-p/1369376#M840254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a calculated dimension using a variable, but I'm not getting it.&lt;/P&gt;&lt;P&gt;In an attachment I send a small application that intends to explain what I intend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put in dimension anything like:&lt;/P&gt;&lt;P&gt;= If (Dim1 = $ (vDisplayMaxDim1), 'A',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If (Dim1 = $ (vDisplayMinDim1), 'B', 'C'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i create 1 text field with the variable works fine, but in dimension if no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some help ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>dimension if with variable</title>
      <link>https://community.qlik.com/t5/QlikView/dimension-if-with-variable/m-p/1369376#M840254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a calculated dimension using a variable, but I'm not getting it.&lt;/P&gt;&lt;P&gt;In an attachment I send a small application that intends to explain what I intend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put in dimension anything like:&lt;/P&gt;&lt;P&gt;= If (Dim1 = $ (vDisplayMaxDim1), 'A',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If (Dim1 = $ (vDisplayMinDim1), 'B', 'C'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i create 1 text field with the variable works fine, but in dimension if no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some help ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dimension-if-with-variable/m-p/1369376#M840254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: dimension if with variable</title>
      <link>https://community.qlik.com/t5/QlikView/dimension-if-with-variable/m-p/1369377#M840255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be look at the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE: For variable, I added = sign in front of the expression in the variable definition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/162277_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the other method, you need to add TOTAL&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if (Dim1=max(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; Dim1),'A',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if( Dim1=min(&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; &lt;/STRONG&gt;Dim1),'B','C'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 23:11:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dimension-if-with-variable/m-p/1369377#M840255</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-05-04T23:11:10Z</dc:date>
    </item>
  </channel>
</rss>

