<?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: Create a field from two existing field in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-field-from-two-existing-field-in-script/m-p/112952#M762564</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;you can try like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;T1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;BreakDown,LossBU, Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;No, 0, 2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Yes, 95, 2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Yes, 60, 2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;T2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD sum(LossBU)/Count(if(BreakDown='Yes',BreakDown)) as MTTR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident T1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Group By Year;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2018 11:59:20 GMT</pubDate>
    <dc:creator>pooja_prabhu_n</dc:creator>
    <dc:date>2018-08-07T11:59:20Z</dc:date>
    <item>
      <title>Create a field from two existing field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-from-two-existing-field-in-script/m-p/112949#M762560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had originally a bar chart &lt;/P&gt;&lt;P&gt;with a dimension weekyear and a formula like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(sum(LossBU)/ Count ( {&amp;lt;Breakdown={'Yes'}&amp;gt;} Breakdown)&amp;gt;0,sum(LossBU)/ Count ( {&amp;lt;Breakdown={'Yes'}&amp;gt;} Breakdown),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I want to include that formula in the script&amp;nbsp; as MTTR because i want it to be a part of a table box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MTTR:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LossBU,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Breakdown, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(sum(LossBU)/ Count ( Breakdown=('Yes'))) as MTTR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;But it didn't work&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I think becasue the 'yes' is include in the field and qlikview don't recognize it &lt;IMG alt="BB.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/210090_BB.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&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/Create-a-field-from-two-existing-field-in-script/m-p/112949#M762560</guid>
      <dc:creator>lessassy</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field from two existing field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-from-two-existing-field-in-script/m-p/112950#M762561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;set analysis shouldn't work on script;&lt;/P&gt;&lt;P&gt;it could be replaced with a group by depending on the case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you please provide sample qvw to have a look at data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 09:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field-from-two-existing-field-in-script/m-p/112950#M762561</guid>
      <dc:creator>kfoudhaily</dc:creator>
      <dc:date>2018-08-07T09:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field from two existing field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-from-two-existing-field-in-script/m-p/112951#M762563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok here is the sample&lt;/P&gt;&lt;P&gt;of the application.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 09:59:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field-from-two-existing-field-in-script/m-p/112951#M762563</guid>
      <dc:creator>lessassy</dc:creator>
      <dc:date>2018-08-07T09:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a field from two existing field in script</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-field-from-two-existing-field-in-script/m-p/112952#M762564</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;you can try like this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;T1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;BreakDown,LossBU, Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;No, 0, 2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Yes, 95, 2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Yes, 60, 2018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;T2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD sum(LossBU)/Count(if(BreakDown='Yes',BreakDown)) as MTTR,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident T1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Group By Year;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 11:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-field-from-two-existing-field-in-script/m-p/112952#M762564</guid>
      <dc:creator>pooja_prabhu_n</dc:creator>
      <dc:date>2018-08-07T11:59:20Z</dc:date>
    </item>
  </channel>
</rss>

