<?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 set analysis with alternative States in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-with-alternative-States/m-p/760713#M270635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I explain my problem.&lt;/P&gt;&lt;P&gt;I have to calculate some indicators about the impact of an pub and to compare the indicators of the current pub to the indicators of the last year pub…..&lt;/P&gt;&lt;P&gt;For information,The pub have an date of begin and an date of end and the table is directly joined to the fact table "Movement"..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For make the comparaison possible, I ve created an alternative states on Pub. His name is PubA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, One of the indicators is the valorization of the stock at the beginning of the pub. The formular for this indicator is &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;Valorsisation( current Pub)=&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;%date&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(=vDATE_INIT)&amp;lt;=$(=vDATE_DEB_PUB)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Année&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Mois&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Pub&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; = &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;mvt.Qte&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;vDATE_INIT=(‘01/01/2010’) is the &lt;/SPAN&gt;beginning of all the movement of my stock independent of my pub&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;vDATE_DEB_PUB= is the date of the &lt;/SPAN&gt;beginning of the current Pub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I choose an Date in my list selection of my application, my indicator give me the result of my stock at the date When began the pub…..This indicator gives us good result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I would like to compare this indicator to an the pub of the last year or another… So,&amp;nbsp; I try to buid an indicator which will react only to&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;({&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;[PubA]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;%date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(=vDATE_INV)&amp;lt;=$(=vDATE_DEB_PUB)"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Année&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Mois&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Pub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;= &amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;mvt.Qte&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know of the syntax is correct or this good way to build the comparison ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2015 11:30:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-20T11:30:35Z</dc:date>
    <item>
      <title>set analysis with alternative States</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-alternative-States/m-p/760713#M270635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I explain my problem.&lt;/P&gt;&lt;P&gt;I have to calculate some indicators about the impact of an pub and to compare the indicators of the current pub to the indicators of the last year pub…..&lt;/P&gt;&lt;P&gt;For information,The pub have an date of begin and an date of end and the table is directly joined to the fact table "Movement"..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For make the comparaison possible, I ve created an alternative states on Pub. His name is PubA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, One of the indicators is the valorization of the stock at the beginning of the pub. The formular for this indicator is &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;Valorsisation( current Pub)=&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;({$ &amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;%date&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(=vDATE_INIT)&amp;lt;=$(=vDATE_DEB_PUB)"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Année&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Mois&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Pub&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt; = &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;mvt.Qte&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;vDATE_INIT=(‘01/01/2010’) is the &lt;/SPAN&gt;beginning of all the movement of my stock independent of my pub&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;vDATE_DEB_PUB= is the date of the &lt;/SPAN&gt;beginning of the current Pub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I choose an Date in my list selection of my application, my indicator give me the result of my stock at the date When began the pub…..This indicator gives us good result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I would like to compare this indicator to an the pub of the last year or another… So,&amp;nbsp; I try to buid an indicator which will react only to&amp;nbsp;&amp;nbsp; :&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;({&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;[PubA]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;%date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(=vDATE_INV)&amp;lt;=$(=vDATE_DEB_PUB)"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Année&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Mois&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Pub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;= &amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;mvt.Qte&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know of the syntax is correct or this good way to build the comparison ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 11:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-alternative-States/m-p/760713#M270635</guid>
      <dc:creator />
      <dc:date>2015-02-20T11:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with alternative States</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-alternative-States/m-p/760714#M270636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I don't see why you would need square brackets around the alt state name, maybe try removing those?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;One other consideration is whether you actually have the variable will be defined in the same for the alt state, if you don't then that might also be the issue&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 14:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-alternative-States/m-p/760714#M270636</guid>
      <dc:creator />
      <dc:date>2015-02-20T14:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis with alternative States</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-with-alternative-States/m-p/760715#M270637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank for your answer,&lt;/P&gt;&lt;P&gt;I ve tried to take off the square brackets, but it give again an strange result...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It 's maybe the problem, i ve to create one other&amp;nbsp; variable wich will react on my alternative selection and contain the&lt;/P&gt;&lt;P&gt;Date of the beginning of the pubA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;DATE_DEB_PUB&lt;/SPAN&gt;=date( Date_begin ,'DD/MM/YYYY') (Date of the current selection)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;DATE_DEB_PUBA= ?????&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Date of the Alternative State)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;How could i put into an variable the value of an field for an alternative selection ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;is it possible ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In fact, the new formular will be like at the end&amp;nbsp; if the varaible contains the value of the beginnig date for the alternative state&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;sum&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;({&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;[PubA]&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;%date&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;={&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;"&amp;gt;=$(=vDATE_INV)&amp;lt;=$(=v&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;DATE_DEB_PUBA&lt;/SPAN&gt;)"&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;},&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Année&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Mois&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;=,&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;Pub&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;= &amp;gt;}&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: maroon;"&gt;mvt.Qte&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 10.0pt; font-family: 'Courier New'; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Feb 2015 09:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-with-alternative-States/m-p/760715#M270637</guid>
      <dc:creator />
      <dc:date>2015-02-24T09:58:26Z</dc:date>
    </item>
  </channel>
</rss>

