<?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: [resolved] Convert boolean to integer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344269#M111944</link>
    <description>It's a Java ternary operator and is equivalent to: -
&lt;BR /&gt;if(lookup1.Column1) 1; else 0;
&lt;BR /&gt;but you can't easily use an if statement in a mapping expression.
&lt;BR /&gt;If you mean, why does you way not work, take a look at the Java help for Boolean.equal()</description>
    <pubDate>Fri, 29 Jul 2016 09:55:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-07-29T09:55:06Z</dc:date>
    <item>
      <title>[resolved] Convert boolean to integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344266#M111941</link>
      <description>Hi everyone,
&lt;BR /&gt;I need to do diverse calculation with a column which contain boolean value, but PowerBI isn't understanding boolean as integer.
&lt;BR /&gt;I want to add a new column in my dimension, with the integer of this boolean value but my expression is always returning 0 even for un true boolean :
&lt;BR /&gt;lookup1.Column1.equals("1")?1:0&amp;nbsp;
&lt;BR /&gt;(Column1 is a boolean)
&lt;BR /&gt;Does anyone know where is my mistake, or how can I do it ?
&lt;BR /&gt;Thank's in advance,
&lt;BR /&gt;Julien</description>
      <pubDate>Fri, 29 Jul 2016 09:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344266#M111941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T09:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert boolean to integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344267#M111942</link>
      <description>Hi,&lt;BR /&gt;If the datatype of lookup1.Column1 is boolean, you should write&lt;BR /&gt;&lt;PRE&gt;lookup1.Column1 ? 1 : 0&lt;/PRE&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;TRF</description>
      <pubDate>Fri, 29 Jul 2016 09:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344267#M111942</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2016-07-29T09:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert boolean to integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344268#M111943</link>
      <description>Hi,&lt;BR /&gt;Thank's a lot&lt;BR /&gt;It does work, but can you just explain me why please ? I'm a Java novice and I'd like to understand.&lt;BR /&gt;Thank's in advance,&lt;BR /&gt;Julien</description>
      <pubDate>Fri, 29 Jul 2016 09:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344268#M111943</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T09:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert boolean to integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344269#M111944</link>
      <description>It's a Java ternary operator and is equivalent to: -
&lt;BR /&gt;if(lookup1.Column1) 1; else 0;
&lt;BR /&gt;but you can't easily use an if statement in a mapping expression.
&lt;BR /&gt;If you mean, why does you way not work, take a look at the Java help for Boolean.equal()</description>
      <pubDate>Fri, 29 Jul 2016 09:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344269#M111944</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert boolean to integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344270#M111945</link>
      <description>That's it!</description>
      <pubDate>Fri, 29 Jul 2016 10:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344270#M111945</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2016-07-29T10:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Convert boolean to integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344271#M111946</link>
      <description>Thank's a lot to both of you !!</description>
      <pubDate>Fri, 29 Jul 2016 10:13:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Convert-boolean-to-integer/m-p/2344271#M111946</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-29T10:13:46Z</dc:date>
    </item>
  </channel>
</rss>

