<?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: creating a flag for collaborative in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152577#M634109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide the improvised data and the output table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 09:39:06 GMT</pubDate>
    <dc:creator>MindaugasBacius</dc:creator>
    <dc:date>2016-06-20T09:39:06Z</dc:date>
    <item>
      <title>creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152576#M634108</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;I am wondering whether anyone can provide me with some ideas on how to go about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some of the fields I have to go by are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoice number, consultant, item and customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is if invoice number exists more than once and consultant is different, a flag to designate that the consultant on this invoice was a collaborative effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 09:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152576#M634108</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2016-06-20T09:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152577#M634109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you provide the improvised data and the output table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 09:39:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152577#M634109</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-06-20T09:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152578#M634110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure but you can try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Sum(Aggr(If(Count(invoice)&amp;gt;1,1,0),customer,consultant))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; heading FLAG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 09:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152578#M634110</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2016-06-20T09:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152579#M634111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Thanks, this is what I mean&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; line-height: 1.5em;"&gt;Invoice number, consultant, item, customer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I23,10,G000AAA,1234556&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;should flag as collaborative &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I23,11,G000AAA,1234556&amp;nbsp; should flag as collaborative &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I24,11,G000AAA,1234556&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 09:46:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152579#M634111</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2016-06-20T09:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152580#M634112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In a straight table with dimension [Invoice number] the expression:&lt;/P&gt;&lt;P&gt;if(Count(DISTINCT Consultant) &amp;gt;1,1,0) will return 1 for invoices that were collaborated on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 09:57:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152580#M634112</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-06-20T09:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152581#M634113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As a front end expression:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=Sum(Aggr(If(Count(DISTINCT consultant) &amp;gt; 1, [Invoice number]), 1, 0))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in the back end:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Join(Data)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD [Invoice number]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; If(Sum(&lt;EM style="font-size: 13.3333px;"&gt;DISTINCT &lt;/EM&gt;consultant) &amp;gt; 1, 1, 0) as Flag&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Data&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Group By [Invoice number];&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 09:57:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152581#M634113</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-06-20T09:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152582#M634114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14664166212385485 jive_text_macro" jivemacro_uid="_14664166212385485" modifiedtitle="true"&gt;
&lt;P&gt;tmp:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoice, Consultant&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, B&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, C&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, D&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, A&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Left join (tmp)&lt;/P&gt;
&lt;P&gt;LOAD Invoice&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ,count(Invoice) as [Invoice number]&lt;/P&gt;
&lt;P&gt;Resident tmp&lt;/P&gt;
&lt;P&gt;group by Invoice;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD *,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; if([Invoice number] &amp;gt; 1, 1, 0) as Flag_collaborate&lt;/P&gt;
&lt;P&gt;Resident tmp&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table tmp;&lt;/P&gt;
&lt;P&gt;DROP Field [Invoice number];&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screenshot_1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128489_Screenshot_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look to the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 09:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152582#M634114</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2016-06-20T09:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152583#M634115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you want a flag in the script something like this could be used to create a mapping table, I haven't tested this so apologies for errors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempCollaboration:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Invoice number],&lt;/P&gt;&lt;P&gt;if(CountConsultants &amp;gt;1,'Yes','No') as Collaboration&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;[Invoice number],&lt;/P&gt;&lt;P&gt;Count(DISTINCT Consultant) as CountConsultants&lt;/P&gt;&lt;P&gt;Resident TableName Group by [Invoice number];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MappingCollaboration:&lt;/P&gt;&lt;P&gt;Mapping&lt;/P&gt;&lt;P&gt;LOAD * resident &lt;SPAN style="font-size: 13.3333px;"&gt;TempCollaboration;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table &lt;SPAN style="font-size: 13.3333px;"&gt;TempCollaboration;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately if you try to make the top half of a preceding load as a mapping table it doesn't work so you need to make a temp table then make the mapping table from it then drop the temp table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join(TableName)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;DISTINCT&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Invoice number],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ApplyMap('&lt;SPAN style="font-size: 13.3333px;"&gt;MappingCollaboration&lt;/SPAN&gt;',&lt;SPAN style="font-size: 13.3333px;"&gt;[Invoice number]) as Collaboration&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident &lt;SPAN style="font-size: 13.3333px;"&gt;TableName;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again apologies for any errors as the script has not been tested&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152583#M634115</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-06-20T10:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152584#M634116</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;I like the idea of the front end, but it didn't seem to work for me &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 10:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152584#M634116</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2016-06-20T10:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: creating a flag for collaborative</title>
      <link>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152585#M634117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling to apply any of this. I have made a new field which concatenates the key with the item allowing me to see if this appears twice for it to flag as a collaborative effort. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data will be something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XX*YYY*I234*ITEM and I can know from within my pivot table if that occurs twice it must be because the consultant is different, I know this may not be the best in terms of how the data looks, but even then I can't count it, I just don't understand why, is it because its not an integer? I tried Textcount and its the same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jun 2016 16:21:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/creating-a-flag-for-collaborative/m-p/1152585#M634117</guid>
      <dc:creator>james_hanify</dc:creator>
      <dc:date>2016-06-21T16:21:18Z</dc:date>
    </item>
  </channel>
</rss>

