<?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: Flag creation  in backend in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737692#M452748</link>
    <description>&lt;P&gt;You can do it via script but it will be complex as flag need to be changed dynamically based on selection. So it will be better to do it in frond end instead. You can get it worked on multiple selections as well.&lt;/P&gt;&lt;P&gt;LOAD *&lt;BR /&gt;Inline [&lt;BR /&gt;ID , Country&lt;BR /&gt;1,AS&lt;BR /&gt;1,BU&lt;BR /&gt;1,AP&lt;BR /&gt;2,ZZ&lt;BR /&gt;2,UP&lt;BR /&gt;3,NP&lt;BR /&gt;3,KP] ;&lt;/P&gt;&lt;P&gt;Create variable on front end&amp;nbsp; named&amp;nbsp;&lt;STRONG&gt;vIDSelection&amp;nbsp;&lt;/STRONG&gt;with below expression&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=GetFieldSelections(ID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Create straight table with Dimension Country ,ID and below calculated dimension for Flag&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=aggr(if(GetSelectedCount(ID)=0,'Y',
if(Index(vIDSelection,only({1}ID)),'Y','N')),Country)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create a measure in straight table to exclude ID selection and then you can hide this column or you can include below highlighted set in other measure&lt;/P&gt;&lt;P&gt;=count(&lt;STRONG&gt;{&amp;lt;ID&amp;gt;}&lt;/STRONG&gt;Country)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-21 105557.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39396i898D07F7A657D16D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-08-21 105557.png" alt="Annotation 2020-08-21 105557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-21 105624.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39397i6FBCA1CD1B283D53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-08-21 105624.png" alt="Annotation 2020-08-21 105624.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-21 105648.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39398iDADF742F17D2307B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-08-21 105648.png" alt="Annotation 2020-08-21 105648.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 10:05:38 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-08-21T10:05:38Z</dc:date>
    <item>
      <title>Flag creation  in backend</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737673#M452747</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;I have below table and i wann create flag in the backend&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID , Country/City&lt;/P&gt;&lt;P&gt;1,AS&lt;/P&gt;&lt;P&gt;1,BU&lt;/P&gt;&lt;P&gt;1,AP&lt;/P&gt;&lt;P&gt;2,ZZ&lt;/P&gt;&lt;P&gt;2,UP&lt;/P&gt;&lt;P&gt;When&amp;nbsp; create the flag&amp;nbsp; backend .&lt;/P&gt;&lt;P&gt;When i click ID -1 in front end, For country AS,BU,AP it should be 'Y' and for 'N' for ZZ,UP&lt;/P&gt;&lt;P&gt;similarly when i click on ID-2 . 'Y' as ZZ,UP and 'N' to AS,BU,AP .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Advance Thanks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 09:28:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737673#M452747</guid>
      <dc:creator>Ramsingh</dc:creator>
      <dc:date>2020-08-21T09:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation  in backend</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737692#M452748</link>
      <description>&lt;P&gt;You can do it via script but it will be complex as flag need to be changed dynamically based on selection. So it will be better to do it in frond end instead. You can get it worked on multiple selections as well.&lt;/P&gt;&lt;P&gt;LOAD *&lt;BR /&gt;Inline [&lt;BR /&gt;ID , Country&lt;BR /&gt;1,AS&lt;BR /&gt;1,BU&lt;BR /&gt;1,AP&lt;BR /&gt;2,ZZ&lt;BR /&gt;2,UP&lt;BR /&gt;3,NP&lt;BR /&gt;3,KP] ;&lt;/P&gt;&lt;P&gt;Create variable on front end&amp;nbsp; named&amp;nbsp;&lt;STRONG&gt;vIDSelection&amp;nbsp;&lt;/STRONG&gt;with below expression&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=GetFieldSelections(ID)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Create straight table with Dimension Country ,ID and below calculated dimension for Flag&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;=aggr(if(GetSelectedCount(ID)=0,'Y',
if(Index(vIDSelection,only({1}ID)),'Y','N')),Country)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;create a measure in straight table to exclude ID selection and then you can hide this column or you can include below highlighted set in other measure&lt;/P&gt;&lt;P&gt;=count(&lt;STRONG&gt;{&amp;lt;ID&amp;gt;}&lt;/STRONG&gt;Country)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-21 105557.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39396i898D07F7A657D16D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-08-21 105557.png" alt="Annotation 2020-08-21 105557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-21 105624.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39397i6FBCA1CD1B283D53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-08-21 105624.png" alt="Annotation 2020-08-21 105624.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-21 105648.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39398iDADF742F17D2307B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-08-21 105648.png" alt="Annotation 2020-08-21 105648.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 10:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737692#M452748</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-21T10:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation  in backend</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737811#M452753</link>
      <description>&lt;P&gt;Hi Kush ,&lt;/P&gt;&lt;P&gt;thanks for replying , i need it on back-end as i have other calculations&amp;nbsp; &amp;amp; need to store in qvd&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Just to change the question a bit&amp;nbsp;&lt;BR /&gt;Instead of Flag , can i somehow map ID-1 to ZZ,UP country and ID-2 to&amp;nbsp;&lt;SPAN&gt;AS,BU,AP country&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;( its basically mapping ID's to greyed&amp;nbsp; out Countries list )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This also can work for me .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please note i have millions of record , Outer join could get the app hanged mostly&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737811#M452753</guid>
      <dc:creator>Ramsingh</dc:creator>
      <dc:date>2020-08-21T14:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation  in backend</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737814#M452754</link>
      <description>&lt;P&gt;Now I bit confused that what was your question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Originally it was "&amp;nbsp;&lt;SPAN&gt;When i click ID -1 in front end, For country AS,BU,AP it should be 'Y' and for 'N' for ZZ,UP"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now,Instead of Flag , can i somehow map ID-1 to ZZ,UP country and ID-2 to&amp;nbsp;AS,BU,AP country .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These are totally different. Can you please provide with example what exactly do you need?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737814#M452754</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-21T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation  in backend</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737829#M452756</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for making it confusing , Below is example So for ID-1 is mapped for Ind ,Aus,Pak and ID-2 as SA , US&lt;/P&gt;&lt;P&gt;what i need is reverse mapping ( map ID-1 to SA, US and map ID-2 to Ind,Aus,Pak&amp;nbsp; )&lt;/P&gt;&lt;P&gt;so basically for each ID mapping the grey out country list should be mapped&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramsingh_1-1598021290107.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39424iA8FEFCC3DDB4873A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ramsingh_1-1598021290107.png" alt="Ramsingh_1-1598021290107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Output required : ( So for ID-1 , SA and US should be in white and Ind , Aus , Pak should be greyed out )&lt;/P&gt;&lt;P&gt;similarly for ID-2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramsingh_2-1598021703700.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39426iF238EC7860353CE9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramsingh_2-1598021703700.png" alt="Ramsingh_2-1598021703700.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramsingh_3-1598021737878.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/39427i12EC61264D875C0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ramsingh_3-1598021737878.png" alt="Ramsingh_3-1598021737878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope I'm clear .&lt;/P&gt;&lt;P&gt;Please note : i could required in backend and data has millions of record so any joins could mostly hang&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 14:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737829#M452756</guid>
      <dc:creator>Ramsingh</dc:creator>
      <dc:date>2020-08-21T14:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation  in backend</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737833#M452757</link>
      <description>&lt;P&gt;There could be many ID's in your data so let's say there is ID 3 with other country. So when you select ID=1, it include all the other ID's country? What if you select ID 1 &amp;amp; ID 2 both?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 15:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737833#M452757</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-21T15:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation  in backend</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737864#M452761</link>
      <description>&lt;P&gt;Yes for ID=1 , it could include all other ID's country as well ( all greyed out values ).&lt;/P&gt;&lt;P&gt;I'm looking for each ID calculated in create table /data out of it . So for each ID , it could include all other ID's country as well . There is no selecting of ID's&amp;nbsp; here&lt;BR /&gt;hope I'm clear&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 16:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737864#M452761</guid>
      <dc:creator>Ramsingh</dc:creator>
      <dc:date>2020-08-21T16:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flag creation  in backend</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737869#M452763</link>
      <description>&lt;P&gt;Is there any specific reason you want to do this way? Because it will complicate the things. If I know the reason then I could advise better way of doing it&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 17:02:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-creation-in-backend/m-p/1737869#M452763</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-08-21T17:02:29Z</dc:date>
    </item>
  </channel>
</rss>

