<?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 FORSEMO Generator (Formula &amp; SetModifier Generator) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FORSEMO-Generator-Formula-SetModifier-Generator/m-p/538226#M688840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This piece of script allows you to make complex set modifier and formula definitions inside of a simple, easily readable and maintainable INLINE or Excel table. You will be able to define filter sets in such a simple way, that each data owner from the business can maintain the definitions (and doesn't need to hold QV-certificate in Design/Developmen) because there won't be a need to know the set modifier syntax. Even set operations (+, -, *, / ) can be defined very easily in a simplified syntax.&lt;/P&gt;&lt;P&gt;Giving you an example: Your formula to calculate the current previous-year's versus this month's sales as a percentage would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SET xSalesDiff = Num(Sum({&amp;lt;[Year]={'2013'}, [Month]={'Oct'}, [Store]={'Abel'}&amp;gt;} Sales)/Sum({&amp;lt;[Year]={'2012'}, [Month]={'Oct'}, [Store]={'Abel'}&amp;gt;} Sales) -1, '0,0%');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Using FORSEMO the same definition will be generated automatically if you provide the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="68"&gt;&lt;STRONG&gt;KPI&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="238"&gt;&lt;STRONG&gt;Formula&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="43"&gt;&lt;STRONG&gt;Format&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="52"&gt;&lt;STRONG&gt;Year§1&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="69"&gt;&lt;STRONG&gt;Month§1&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="61"&gt;&lt;STRONG&gt;Store§1&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="56"&gt;&lt;STRONG&gt;Year§2&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="65"&gt;&lt;STRONG&gt;Month§2&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="57"&gt;&lt;STRONG&gt;Store§2&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;" width="68"&gt;xSalesDiff&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="238"&gt;Sum(§1 Sales)/Sum(§2 Sales) -1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="43"&gt;0,00%&lt;/TD&gt;&lt;TD class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="52"&gt;2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="69"&gt;Oct&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="61"&gt;Abel&lt;/TD&gt;&lt;TD class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="56"&gt;2012&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="65"&gt;Oct&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="57"&gt;Abel&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even trigger more complex set operators in a readable syntax. e.g. If you put in column Year§1&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;-2013&amp;nbsp; .... this will turn into &amp;lt;Year -= {2013}&amp;gt;&lt;/LI&gt;&lt;LI&gt;+'2010','2011' -'2013'.... this will turn into &amp;lt;Year += {'2010', '2011'} - {'2013'}&amp;gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Check out my 5"-Flash-video and you will understand, then get your FORESEMO masters degree by reading through my script inline remarks documentation. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 08:52:50 GMT</pubDate>
    <dc:creator>ChristofSchwarz</dc:creator>
    <dc:date>2013-10-29T08:52:50Z</dc:date>
    <item>
      <title>FORSEMO Generator (Formula &amp; SetModifier Generator)</title>
      <link>https://community.qlik.com/t5/QlikView/FORSEMO-Generator-Formula-SetModifier-Generator/m-p/538226#M688840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This piece of script allows you to make complex set modifier and formula definitions inside of a simple, easily readable and maintainable INLINE or Excel table. You will be able to define filter sets in such a simple way, that each data owner from the business can maintain the definitions (and doesn't need to hold QV-certificate in Design/Developmen) because there won't be a need to know the set modifier syntax. Even set operations (+, -, *, / ) can be defined very easily in a simplified syntax.&lt;/P&gt;&lt;P&gt;Giving you an example: Your formula to calculate the current previous-year's versus this month's sales as a percentage would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;SET xSalesDiff = Num(Sum({&amp;lt;[Year]={'2013'}, [Month]={'Oct'}, [Store]={'Abel'}&amp;gt;} Sales)/Sum({&amp;lt;[Year]={'2012'}, [Month]={'Oct'}, [Store]={'Abel'}&amp;gt;} Sales) -1, '0,0%');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Using FORSEMO the same definition will be generated automatically if you provide the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="68"&gt;&lt;STRONG&gt;KPI&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="238"&gt;&lt;STRONG&gt;Formula&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="43"&gt;&lt;STRONG&gt;Format&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="52"&gt;&lt;STRONG&gt;Year§1&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="69"&gt;&lt;STRONG&gt;Month§1&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="61"&gt;&lt;STRONG&gt;Store§1&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="56"&gt;&lt;STRONG&gt;Year§2&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="65"&gt;&lt;STRONG&gt;Month§2&lt;SPAN class="font5"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left-color: currentColor; border-left-width: medium; border-left-style: none;" width="57"&gt;&lt;STRONG&gt;Store§2&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;" width="68"&gt;xSalesDiff&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="238"&gt;Sum(§1 Sales)/Sum(§2 Sales) -1&lt;/TD&gt;&lt;TD class="xl67" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="43"&gt;0,00%&lt;/TD&gt;&lt;TD class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="52"&gt;2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="69"&gt;Oct&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="61"&gt;Abel&lt;/TD&gt;&lt;TD class="xl68" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="56"&gt;2012&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="65"&gt;Oct&lt;/TD&gt;&lt;TD class="xl66" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;" width="57"&gt;Abel&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even trigger more complex set operators in a readable syntax. e.g. If you put in column Year§1&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;-2013&amp;nbsp; .... this will turn into &amp;lt;Year -= {2013}&amp;gt;&lt;/LI&gt;&lt;LI&gt;+'2010','2011' -'2013'.... this will turn into &amp;lt;Year += {'2010', '2011'} - {'2013'}&amp;gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Check out my 5"-Flash-video and you will understand, then get your FORESEMO masters degree by reading through my script inline remarks documentation. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 08:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FORSEMO-Generator-Formula-SetModifier-Generator/m-p/538226#M688840</guid>
      <dc:creator>ChristofSchwarz</dc:creator>
      <dc:date>2013-10-29T08:52:50Z</dc:date>
    </item>
  </channel>
</rss>

