<?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 Data Editor combining two IF expressions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Data-Editor-combining-two-IF-expressions/m-p/930105#M12909</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;right now I try to combine two IF expressions, but i don't really know how. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got these two statements: &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;IF ([Eintritt/ Einsatzstarts] &amp;gt; '01.01.2015' AND [Eintritt/ Einsatzstarts] &amp;lt; Today(), 'Eintritte', 'Eintritt vor 2015') as "Eintritte",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ([Einsatzende / tats. Austritt (Feld in DB)] &amp;gt; '01.01.2015' AND [Einsatzende / tats. Austritt (Feld in DB)] &amp;lt; Today(), 'Austritt', 'Austritt nicht in 2015') as "Austritte",&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My plan is to combine these two and get a new column where only "Eintritte" and "Austritt" are in. So both 'as' reference on the same column and only &lt;SPAN style="font-size: 13.3333px;"&gt;"Eintritte" and "Austritt" will be written into. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to achieve this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2015 14:23:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-12-01T14:23:32Z</dc:date>
    <item>
      <title>Data Editor combining two IF expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Editor-combining-two-IF-expressions/m-p/930105#M12909</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;right now I try to combine two IF expressions, but i don't really know how. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got these two statements: &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;IF ([Eintritt/ Einsatzstarts] &amp;gt; '01.01.2015' AND [Eintritt/ Einsatzstarts] &amp;lt; Today(), 'Eintritte', 'Eintritt vor 2015') as "Eintritte",&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ([Einsatzende / tats. Austritt (Feld in DB)] &amp;gt; '01.01.2015' AND [Einsatzende / tats. Austritt (Feld in DB)] &amp;lt; Today(), 'Austritt', 'Austritt nicht in 2015') as "Austritte",&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My plan is to combine these two and get a new column where only "Eintritte" and "Austritt" are in. So both 'as' reference on the same column and only &lt;SPAN style="font-size: 13.3333px;"&gt;"Eintritte" and "Austritt" will be written into. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to achieve this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 14:23:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Editor-combining-two-IF-expressions/m-p/930105#M12909</guid>
      <dc:creator />
      <dc:date>2015-12-01T14:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data Editor combining two IF expressions</title>
      <link>https://community.qlik.com/t5/App-Development/Data-Editor-combining-two-IF-expressions/m-p/930106#M12910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philipp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take a look at the crosstable function for the load script. With 'crosstable' you rotate the existing two columns and create two new ones in one step. (it is nearly similar to the special-paste option "transpose" in MS Excel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri,verdana,arial,sans-serif;"&gt;yourTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;crosstable&lt;/STRONG&gt;&lt;/SPAN&gt; ([Ein-/Austritte], [detail], 4)&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3366ff;"&gt;Load&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Name,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;dept,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;[Eintritt/ Einsatzstarts],&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;[Einsatzende / tats. Austritt (Feld in DB)],&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;IF ([Eintritt/ Einsatzstarts] &amp;gt; '01.01.2015' AND [Eintritt/ Einsatzstarts] &amp;lt; Today(), 'Eintritte', 'Eintritt vor 2015') as "Eintritte",&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;IF ([Einsatzende / tats. Austritt (Feld in DB)] &amp;gt; '01.01.2015' AND [Einsatzende / tats. Austritt (Feld in DB)] &amp;lt; Today(), 'Austritt', 'Austritt nicht in 2015') as "Austritte"&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3366ff;"&gt;From&lt;/STRONG&gt; *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Ein-/Austritte]&lt;/STRONG&gt; = this is the new column where "Eintritte" and "Austritte" where collected&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[detail]&lt;/STRONG&gt; = this is the new column where the former values of "Eintrtte" and "Austritte" are collected&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4&lt;/STRONG&gt; = this is the number of columns of your existing table which you want to keep as they are and shouldn't be transformed into crosstable. In the example above you skip "Name", "Agency", [Eintritt/ Einsatzstarts] and [Einsatzende / tats. Austritt (Feld in DB)], all columns after these numbers of excluded column would be transformend into a crosstable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I look at your IF-statements, then you have two values for each field - is this correct? Means "Eintritte" can be the value 'Eintritte' or 'Eintritt vor 2015'. "Austritte" can be the value 'Austritt' or 'Austritt nicht in 2015' - correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to visualize it via 'actually' table (&lt;EM&gt;please correct my suggestions, this is what I interpreted with your given formulas^^&lt;/EM&gt;) and 'new' (cross-)table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;dept&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Eintritt/ Einsatzstarts&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Einsatzende / tats. Austritt (Feld in DB)&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Eintritte&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Austritte&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;finance&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.02.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30.06.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Doe&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;production&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24.09.2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23.09.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritt vor 2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Kruger&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;healthcare&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24.06.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23.06.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritt nicht in 2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Myers&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;operations&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30.09.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;29.03.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritt nicht in 2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new (after crosstable transformation):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;dept&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Eintritt/ Einsatzstarts&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Einsatzende / tats. Austritt (Feld in DB)&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Ein-/Austritte&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;detail&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Smith&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;finance&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12.02.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30.06.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD colspan="1"&gt;Smith&lt;/TD&gt;&lt;TD colspan="1"&gt;finance&lt;/TD&gt;&lt;TD colspan="1"&gt;12.02.2015&lt;/TD&gt;&lt;TD colspan="1"&gt;30.06.2015&lt;/TD&gt;&lt;TD colspan="1"&gt;Austritte&lt;/TD&gt;&lt;TD colspan="1"&gt;Austritt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Doe&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;production&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24.09.2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23.09.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritt vor 2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Doe&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;production&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24.09.2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23.09.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritt&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Kruger&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;healthcare&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24.06.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23.06.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Kruger&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;healthcare&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;24.06.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23.06.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritt nicht in 2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Myers&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;operations&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30.09.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;29.03.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Eintritte&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Myers&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;operations&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;30.09.2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;29.03.2016&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritte&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Austritt nicht in 2015&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this solution your datasets will be duplicated because the new field [Ein-/Austritte] gets 2 new values (Eintritte, Austritte). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to admit that I have no idea if this is what you want to have - maybe an example file and a little description or what you want to do with this new field could clean up the suggestion to a suggestion to a helpful support&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;T.&lt;/P&gt;&lt;P&gt;(let me know if you are a german speaking guy, I am such a guy too - could be easier to communicate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2015 20:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Data-Editor-combining-two-IF-expressions/m-p/930106#M12910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-01T20:52:20Z</dc:date>
    </item>
  </channel>
</rss>

