<?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: an expression in a dimension created in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/an-expression-in-a-dimension-created/m-p/1098084#M18467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have looked at my expression and tried to write it in a different way, with a "pick/match" expression. To do this I have taken what I had written bit by bit and found out what my error was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ([Contrat] = 'CONTRAT MSN SFR', 'OK', 'NOK') =&amp;gt; that looks for the chain of character containing 'CONTRAT MSN SFR', when I should have been looking for 'CONTRAT NSN SFR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small error in typing that makes a great difference, but that easy to find wghen one does not know whether I was looking for a syntax error or a error of logic. That's the pleasure of breaking a new tool I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 27 Aug 2016 17:45:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-27T17:45:19Z</dc:date>
    <item>
      <title>an expression in a dimension created</title>
      <link>https://community.qlik.com/t5/App-Development/an-expression-in-a-dimension-created/m-p/1098083#M18466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not knowing whether I have to write in English or in French, I shall start in English since I am relatively new to Qlik Sense and certainly new to this forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write an expression into a dimension I have created. after a 1st success, I was hoping that what comes next would be easy !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- I went into th creation of a sheet mode ;&lt;/P&gt;&lt;P&gt;- in the left pane, I went into "Eléments principaux" tab ;&lt;/P&gt;&lt;P&gt;- I went into dimensions and created a new element ;&lt;/P&gt;&lt;P&gt;- in the "edit the dimension" box, I made sure the "Unique" radio button was clicked ;&lt;/P&gt;&lt;P&gt;- in the name field, I called my dimension :&amp;nbsp; Hors_délai_pour_SFR ;&lt;/P&gt;&lt;P&gt;- then I went into the expression editor ;&lt;/P&gt;&lt;P&gt;- and I wrote :&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ([Contrat] = 'CONTRAT MSN SFR', 'OK', 'NOK')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Then, in a table, I made sure I had the column [Contrat] ;&lt;/P&gt;&lt;P&gt;- i filtered my table to bring out the lines where [Contrat] = 'CONTRAT MSN SFR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- after adding the dimension newly created "Hors_delais_pour_SFR" as a column in the table, I expected to see the value 'OK' appear in it.&lt;/P&gt;&lt;P&gt;- The value 'NOK' appears however, like if the test&amp;nbsp;&amp;nbsp; ([Contrat] = 'CONTRAT MSN SFR'&amp;nbsp;&amp;nbsp; did not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have any "compiling" errors appearing in the editor when writing my expression. So my guess is I wrote someting different to what I believe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you pleasee tell me how am I supposed to write this expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards, Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 15:11:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/an-expression-in-a-dimension-created/m-p/1098083#M18466</guid>
      <dc:creator />
      <dc:date>2016-08-26T15:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: an expression in a dimension created</title>
      <link>https://community.qlik.com/t5/App-Development/an-expression-in-a-dimension-created/m-p/1098084#M18467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have looked at my expression and tried to write it in a different way, with a "pick/match" expression. To do this I have taken what I had written bit by bit and found out what my error was.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ([Contrat] = 'CONTRAT MSN SFR', 'OK', 'NOK') =&amp;gt; that looks for the chain of character containing 'CONTRAT MSN SFR', when I should have been looking for 'CONTRAT NSN SFR'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A small error in typing that makes a great difference, but that easy to find wghen one does not know whether I was looking for a syntax error or a error of logic. That's the pleasure of breaking a new tool I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 17:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/an-expression-in-a-dimension-created/m-p/1098084#M18467</guid>
      <dc:creator />
      <dc:date>2016-08-27T17:45:19Z</dc:date>
    </item>
  </channel>
</rss>

