<?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: Calculated Field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775542#M473432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide any sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2014 17:04:31 GMT</pubDate>
    <dc:creator>its_anandrjs</dc:creator>
    <dc:date>2014-11-05T17:04:31Z</dc:date>
    <item>
      <title>Calculated Field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775538#M473428</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;Could anyone help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dashboard and want to create a new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field Expense = "Income" then I want my field to have the value in the field "Category"&lt;/P&gt;&lt;P&gt;If the field Expense = "Direct" then I want my field to have the value in the field "Org_Unit"&lt;/P&gt;&lt;P&gt;If the field Expense = "Indirect" then I want my field to have the value in the field "Exp_Catt"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This is my first Qlikview dashboard, so I will get better !!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775538#M473428</guid>
      <dc:creator />
      <dc:date>2014-11-05T16:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775539#M473429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create below in your script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Value,&lt;/P&gt;&lt;P&gt;Expense,&lt;/P&gt;&lt;P&gt;If(Expense = 'Income', Value) as Category,&lt;/P&gt;&lt;P&gt;If(Expense = 'Direct', Value) as Org_Unit,&lt;/P&gt;&lt;P&gt;If(Expense = 'Indirect', Value) as Exp_Catt,&lt;/P&gt;&lt;P&gt;OtherFields....&lt;/P&gt;&lt;P&gt;From Souc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775539#M473429</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-05T16:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775540#M473430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the script you have something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select (or Load)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Expense&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;then transform it into:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select (or Load)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Expense,&lt;/P&gt;&lt;P&gt;If(Expense = 'Income', 'Category',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Expense = 'Direct', 'Org_Unit',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Expense = 'Indirect', 'Exp_Catt', 'Undefined'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;) as myNewField&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;From&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Where&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 16:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775540#M473430</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-11-05T16:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775541#M473431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this in chart's expression:&lt;/P&gt;&lt;P&gt;Pick(Match(GoodField, 'Income', 'Direct', 'Indirect'), 'Category', 'Org_Unit', 'Exp_Catt')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where good field is your field, see attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 17:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775541#M473431</guid>
      <dc:creator />
      <dc:date>2014-11-05T17:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775542#M473432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide any sample file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 17:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775542#M473432</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-11-05T17:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775543#M473433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD somefields,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(Match(Expense, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Income&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Direct&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Indirect&lt;/SPAN&gt;'), '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Category&lt;/SPAN&gt;', '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Org_Unit&lt;/SPAN&gt;','&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Exp_Catt&lt;/SPAN&gt;') as [new field]&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM anywhere;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 17:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775543#M473433</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-05T17:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculated Field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775544#M473434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_140967_Pic1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70595_QlikCommunity_Thread_140967_Pic1.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 21:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775544#M473434</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-05T21:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775545#M473435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just noticed my mistake.&lt;/P&gt;&lt;P&gt;Better try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD somefields,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(Match(Expense, '&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Income&lt;/SPAN&gt;','&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Direct&lt;/SPAN&gt;','&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Indirect&lt;/SPAN&gt;'), &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Category&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Org_Unit, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;Exp_Catt&lt;/SPAN&gt;) as [new field]&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM anywhere;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hope this helps&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 21:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775545#M473435</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-05T21:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculated Field</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775546#M473436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="QlikCommunity_Thread_140967_Pic2.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/70596_QlikCommunity_Thread_140967_Pic2.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14152239680004402" jivemacro_uid="_14152239680004402"&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(Match(Expense, 'Income','Direct','Indirect'), Category, Org_Unit, Exp_Catt) as [new field];&lt;/P&gt;
&lt;P&gt;LOAD RecNo() as ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pick(Ceil(Rand()*3),'Income','Direct','Indirect') as Expense,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as Category,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as&amp;nbsp; Org_Unit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ceil(Rand()*100) as&amp;nbsp; Exp_Catt&lt;/P&gt;
&lt;P&gt;AutoGenerate 20;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps ...&lt;/P&gt;&lt;P&gt;...finally&lt;/P&gt;&lt;P&gt;&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;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2014 21:46:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-Field/m-p/775546#M473436</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-11-05T21:46:40Z</dc:date>
    </item>
  </channel>
</rss>

