<?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 Based on Selected Period in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026216#M466217</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The synthetic key in your example is no problem and shouldn't be with large data sets. I don't think you need to remove it. But you could merge the Preferred table with the Fact table with a join or a mapping table+applymap. You can also replace the Y/N values with dual (Y,1) (N,0) values so you can multiply them with the Spend values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2016 18:36:16 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-02-12T18:36:16Z</dc:date>
    <item>
      <title>Flag Based on Selected Period</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026211#M466212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My issues is that I have preferred suppliers that change from year to year. I want to be able to report on preferred supplier spend depending on the year selected by the end user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now my approach is to create an apply map based on the table below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" 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;Supplier&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;2014&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;2015&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;2016&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Supplier1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea would be to create three different fields ... i.e Preferred 2014 Flag, Preferred 2015 Flag, Preferred 2016 .. but there are many issues that come with this approach and I am not sure it is going to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have another suggestion? The end goal would be for Supplier1's spend to be calculated under preferred for 2014 and 2016, but not 2015. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 17:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026211#M466212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-12T17:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Based on Selected Period</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026212#M466213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you post a small qlikview document that illustrates the problem. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026212#M466213</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-12T18:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Based on Selected Period</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026213#M466214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gysbert - Please see attached. These is an extremely simplified version, but it represents the issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my real data model I have one fact table, and one calendar table. If I introduce the preferred data this way I fear I will have multiple synthetic keys. I also believe there is a more sophisticated approach I am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026213#M466214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-12T18:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Based on Selected Period</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026214#M466215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this do what you want: sum({&amp;lt;Preferred={'Y'}&amp;gt;}Spend)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:27:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026214#M466215</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-12T18:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Based on Selected Period</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026215#M466216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. That set analysis does what I want, but I am more concerned with the overall approach I am taking. The data sets I am working with a much larger, and I want to make sure I do not have any synthetic keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just overthinking this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:28:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026215#M466216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-12T18:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Based on Selected Period</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026216#M466217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The synthetic key in your example is no problem and shouldn't be with large data sets. I don't think you need to remove it. But you could merge the Preferred table with the Fact table with a join or a mapping table+applymap. You can also replace the Y/N values with dual (Y,1) (N,0) values so you can multiply them with the Spend values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026216#M466217</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-02-12T18:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Flag Based on Selected Period</title>
      <link>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026217#M466218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert! Appreciate the help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2016 18:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flag-Based-on-Selected-Period/m-p/1026217#M466218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-12T18:37:55Z</dc:date>
    </item>
  </channel>
</rss>

