<?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: Comparing Values as an expression in Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comparing-Values-as-an-expression-in-Set-Analysis/m-p/668179#M242953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert and Sasikanth for replying.&lt;/P&gt;&lt;P&gt;But REG_CUR is not a value, its again a field which contains different Regional Currencies for corresponding region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if drill down '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;drRegion' is 'REG_DESC' , then following REG_CURR should be used like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JPY for japan,&lt;/P&gt;&lt;P&gt;EUR fro Euro,&lt;/P&gt;&lt;P&gt;USD for Asia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jun 2014 11:15:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-27T11:15:17Z</dc:date>
    <item>
      <title>Comparing Values as an expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Values-as-an-expression-in-Set-Analysis/m-p/668176#M242950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to calculate total sales against regions (Japan, Asia, EURO),&lt;/P&gt;&lt;P&gt;where i need to have sales figure like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sales for japan should be in JPY&lt;/P&gt;&lt;P&gt;Sales for Asia should be in USD&lt;/P&gt;&lt;P&gt;and Sales for EURO should be in EUR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have a table in which i calculated the currency as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=MinString&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='REG_DESC',REG_CUR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='SUBREG',SUBREG_CUR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='COMP',COMP_CUR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='COMP2',COMP2_CUR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='ENT_SAP',ENT_SAP_CUR)))))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;currency is coming correct when i take this expression alone against Regions as dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I calculate the sales figure like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;ConvertedCurrency =&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;"$(=MinString&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='REG_DESC',REG_CUR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='SUBREG',SUBREG_CUR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='COMP',COMP_CUR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='COMP2',COMP2_CUR,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(GetCurrentField(drRegion)='ENT_SAP',ENT_SAP_CUR)))))&lt;/P&gt;&lt;P&gt;))"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This currency expression is not working correct means giving only 'EUR' against all the regions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 09:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Values-as-an-expression-in-Set-Analysis/m-p/668176#M242950</guid>
      <dc:creator />
      <dc:date>2014-06-27T09:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Values as an expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Values-as-an-expression-in-Set-Analysis/m-p/668177#M242951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis calculates one set per chart, not a set per dimension value. If you're using region as a dimension you'll have to use the if statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 09:57:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Values-as-an-expression-in-Set-Analysis/m-p/668177#M242951</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-27T09:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Values as an expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Values-as-an-expression-in-Set-Analysis/m-p/668178#M242952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;you can write 5 Exp , then you can enable them based on condition&lt;/P&gt;&lt;P&gt;not a good practice but one way to achieve it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;currency={'REG_CUR'}&amp;gt;}sales)&lt;/STRONG&gt;---&amp;gt; enabling condition&lt;STRONG&gt; if(getcurrentFiled(drRegion)='REG_DESC',1,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sililarly remaining &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 10:12:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Values-as-an-expression-in-Set-Analysis/m-p/668178#M242952</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-06-27T10:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing Values as an expression in Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Comparing-Values-as-an-expression-in-Set-Analysis/m-p/668179#M242953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gysbert and Sasikanth for replying.&lt;/P&gt;&lt;P&gt;But REG_CUR is not a value, its again a field which contains different Regional Currencies for corresponding region.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if drill down '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;drRegion' is 'REG_DESC' , then following REG_CURR should be used like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JPY for japan,&lt;/P&gt;&lt;P&gt;EUR fro Euro,&lt;/P&gt;&lt;P&gt;USD for Asia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 11:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comparing-Values-as-an-expression-in-Set-Analysis/m-p/668179#M242953</guid>
      <dc:creator />
      <dc:date>2014-06-27T11:15:17Z</dc:date>
    </item>
  </channel>
</rss>

