<?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: Translation issue in if-statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421052#M798472</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've already tried, neither of these work.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, there is a problem with the = sign&amp;nbsp; to assign the value of the translation. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Dec 2017 12:39:02 GMT</pubDate>
    <dc:creator>jlbenoit</dc:creator>
    <dc:date>2017-12-19T12:39:02Z</dc:date>
    <item>
      <title>Translation issue in if-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421047#M798467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a problem with translation in if-statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i enter the field expression in a pie-chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(metier='G',Only({&amp;lt;CODE={groupage}&amp;gt;} [$(=langue)]),if(metier='L','Logistique','Affretement'))&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i've got a dimension error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i create a variable&lt;/P&gt;&lt;P&gt;groupage&amp;nbsp; with express&lt;SPAN style="font-size: 10pt;"&gt;ion &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt; =&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Only({&amp;lt;CODE={groupage}&amp;gt;} [$(=langue)])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and then enter the expression with the variable in the pie-chart&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;=if(metier='G',groupage,if(metier='L','Logistique','Affretement'))&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;It's working.&amp;nbsp;&amp;nbsp; Why it doesn't work without variable, is there a problem with the = sign ?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&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/Translation-issue-in-if-statement/m-p/1421047#M798467</guid>
      <dc:creator>jlbenoit</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Translation issue in if-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421048#M798468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wait what is a dimension and what is an expression? I am confused&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 17:20:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421048#M798468</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-18T17:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Translation issue in if-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421049#M798469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share mock data and expected output? and also u can try below way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(metier='G',Only({&amp;lt;CODE={groupage}&amp;gt;} $(langue)),if(metier='L','Logistique','Affretement')) &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(metier='G' and CODE='groupage', $(langue)),if(metier='L','Logistique','Affretement')) &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 17:26:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421049#M798469</guid>
      <dc:creator>devarasu07</dc:creator>
      <dc:date>2017-12-18T17:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Translation issue in if-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421050#M798470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function (fx) &lt;STRONG&gt;Only({&amp;lt;CODE={groupage}&amp;gt;} [$(=langue)])&amp;nbsp; &lt;/STRONG&gt;is the traduction of the code groupage in the users language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i put this function in a variable and then use as function in dimension field of chart&amp;nbsp; i've no problem.&lt;/P&gt;&lt;P&gt;like this where groupage is the variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sans titre2.png" class="jive-image image-2" height="146" src="/legacyfs/online/187477_Sans titre2.png" style="height: 146px; width: 461.311px;" width="461" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(metier='G',groupage,if(metier='L','Logistique','Affretement'))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;-&amp;gt; works fine&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But if i put the function for the traduction directly, without passing by a variable like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=if(metier='G',Only({&amp;lt;CODE={groupage}&amp;gt;} $(langue)),if(metier='L','Logistique','Affretement'))&amp;nbsp; &lt;/STRONG&gt;-&amp;gt; get error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;i've got a message&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;IMG alt="Sans titre.png" class="jive-image image-1" src="/legacyfs/online/187476_Sans titre.png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution without using variables ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 08:09:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421050#M798470</guid>
      <dc:creator>jlbenoit</dc:creator>
      <dc:date>2017-12-19T08:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Translation issue in if-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421051#M798471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be wrap your Only function within a dollar sign expansion or add a TOTAL Qualifier&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(metier = 'G', &lt;SPAN style="color: #ff0000;"&gt;$(=&lt;/SPAN&gt;Only({&amp;lt;CODE={groupage}&amp;gt;} [$(=langue)])&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;, If(metier = 'L', 'Logistique', 'Affretement'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(metier = 'G', Only(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; {&amp;lt;CODE={groupage}&amp;gt;} [$(=langue)]), If(metier = 'L', 'Logistique', 'Affretement'))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:22:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421051#M798471</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-19T09:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Translation issue in if-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421052#M798472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've already tried, neither of these work.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, there is a problem with the = sign&amp;nbsp; to assign the value of the translation. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 12:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421052#M798472</guid>
      <dc:creator>jlbenoit</dc:creator>
      <dc:date>2017-12-19T12:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Translation issue in if-statement</title>
      <link>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421053#M798473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 16:49:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Translation-issue-in-if-statement/m-p/1421053#M798473</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-19T16:49:21Z</dc:date>
    </item>
  </channel>
</rss>

