<?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 Translate calculated dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Translate-calculated-dimension/m-p/334648#M123359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Say I have a calculated dimension that returns one of four values: 1,0,-1, or Null()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression looks something like this:&amp;nbsp; Sign(Aggr(Sum(&lt;EM&gt;value&lt;/EM&gt;),&lt;EM&gt;dimension&lt;/EM&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a &lt;EM&gt;clean &lt;/EM&gt;way of translating the returned values (again, 1,0,-1, or null) to a meaningful value to the users; e.g. Gainers,Losers,No Change, or Not Applicable.&amp;nbsp; I know I can do this with nested If statements, but looking for a better/simpler way.&amp;nbsp; I can't move this into the script because it is dynamic based on selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas much appreciated!&amp;nbsp; -Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2012 15:27:28 GMT</pubDate>
    <dc:creator>isaiah82</dc:creator>
    <dc:date>2012-05-03T15:27:28Z</dc:date>
    <item>
      <title>Translate calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-calculated-dimension/m-p/334648#M123359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Say I have a calculated dimension that returns one of four values: 1,0,-1, or Null()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression looks something like this:&amp;nbsp; Sign(Aggr(Sum(&lt;EM&gt;value&lt;/EM&gt;),&lt;EM&gt;dimension&lt;/EM&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking for a &lt;EM&gt;clean &lt;/EM&gt;way of translating the returned values (again, 1,0,-1, or null) to a meaningful value to the users; e.g. Gainers,Losers,No Change, or Not Applicable.&amp;nbsp; I know I can do this with nested If statements, but looking for a better/simpler way.&amp;nbsp; I can't move this into the script because it is dynamic based on selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas much appreciated!&amp;nbsp; -Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 15:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-calculated-dimension/m-p/334648#M123359</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2012-05-03T15:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Translate calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-calculated-dimension/m-p/334649#M123360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using a pick/match combination:&lt;/P&gt;&lt;P&gt;pick(match(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Sign(Aggr(Sum(&lt;/SPAN&gt;&lt;EM style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;value&lt;/EM&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;),&lt;/SPAN&gt;&lt;EM style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;dimension&lt;/EM&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;)),1,0,-1),'Gainer','No Change','Loser',)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;You'll need one if statement for the null values, as I don't believe match works with null values.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2012 15:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-calculated-dimension/m-p/334649#M123360</guid>
      <dc:creator>danielact</dc:creator>
      <dc:date>2012-05-03T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Translate calculated dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Translate-calculated-dimension/m-p/334650#M123361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does it; thanks!&amp;nbsp; I ended up using RangeMax around the Aggr() to accommodate the nulls (I gave them a value of -2.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2012 13:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translate-calculated-dimension/m-p/334650#M123361</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2012-05-04T13:57:34Z</dc:date>
    </item>
  </channel>
</rss>

