<?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: Variabilize set modifier in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108703#M890323</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, Appreciate your quick and prompt response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to completely get rid of &lt;STRONG style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Link_Date = {"$(=Pick(vTimeDim, '&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;$(vToDate)&lt;/SPAN&gt;', &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;gt;=$(=Date(WeekStart(vToDate)))&amp;lt;=$(vToDate),&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;gt;=$(=Date(MonthStart(vToDate)))&amp;lt;=$(vToDate), &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;gt;=$(=Date(YearStart(vToDate)))&amp;lt;=$(vToDate))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;"} this par.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;I mean can we replace it with a variable. Because I have about 50 metrics and I'll have to write this part for all of them right.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 22:46:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-29T22:46:18Z</dc:date>
    <item>
      <title>Variabilize set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108701#M890321</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 have defined as Time Dimensions as below:&lt;/P&gt;&lt;P&gt;Date defined as vTimeDim = 1,&amp;nbsp; &lt;/P&gt;&lt;P&gt;Week defined as vTimeDim = 2, &lt;/P&gt;&lt;P&gt;Month defined as vTimeDim = 3, &lt;/P&gt;&lt;P&gt;Year defined as vTimeDim = 4. vTimeDim is the action given to the text Objects so that user can toggle between the different time dimensions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have expression as&lt;/P&gt;&lt;P&gt;pick(vTimeDim,&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Link_Date={'$(vToDate)'}&amp;gt;}Applications,&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Link_Date={"&amp;gt;=$(=DATE(weekstart(vToDate)))&amp;lt;=$(vToDate)"}&amp;gt;}Applications,&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Link_Date={"&amp;gt;=$(=DATE(monthstart(vToDate)))&amp;lt;=$(vToDate)"}&amp;gt;}Applications,&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Link_Date={"&amp;gt;=$(=DATE(yearstart(vToDate)))&amp;lt;=$(vToDate)"}&amp;gt;}Applications)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to variablize the date modifier, so that I can write just one expression.&lt;/P&gt;&lt;P&gt;Something like =sum({&amp;lt;$(vTimeSetExp)&amp;gt;}Applications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how to put the date modifiers into &lt;SPAN style="font-size: 13.3333px;"&gt;vTimeSetExp&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108701#M890321</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variabilize set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108702#M890322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this:&lt;/P&gt;&lt;P&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;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Link_Date = {"$(=Pick(vTimeDim, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(vToDate)&lt;/SPAN&gt;', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;=$(=Date(WeekStart(vToDate)))&amp;lt;=$(vToDate), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;=$(=Date(MonthStart(vToDate)))&amp;lt;=$(vToDate), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;=$(=Date(YearStart(vToDate)))&amp;lt;=$(vToDate))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;"}&lt;/SPAN&gt;&amp;gt;}Applications)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 21:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108702#M890322</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-29T21:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Variabilize set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108703#M890323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, Appreciate your quick and prompt response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to completely get rid of &lt;STRONG style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;Link_Date = {"$(=Pick(vTimeDim, '&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;$(vToDate)&lt;/SPAN&gt;', &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;gt;=$(=Date(WeekStart(vToDate)))&amp;lt;=$(vToDate),&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;gt;=$(=Date(MonthStart(vToDate)))&amp;lt;=$(vToDate), &lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&amp;gt;=$(=Date(YearStart(vToDate)))&amp;lt;=$(vToDate))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;"} this par.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-style: inherit; background-color: #f2f2f2; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: inherit;"&gt;I mean can we replace it with a variable. Because I have about 50 metrics and I'll have to write this part for all of them right.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 22:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108703#M890323</guid>
      <dc:creator />
      <dc:date>2016-08-29T22:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Variabilize set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108704#M890324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See if you like the approach in the attached qvw file. I can provide another one based on a variable, but this one uses a technique from an inline load in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/135928_Capture.PNG" style="height: 283px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 23:06:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108704#M890324</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-29T23:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variabilize set modifier</title>
      <link>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108705#M890325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi aditya,&lt;/P&gt;&lt;P&gt;You can use variable functions to create a variable Set Analysis. See this post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlikview.com/thread/18030" title="https://community.qlikview.com/thread/18030"&gt;https://community.qlikview.com/thread/18030&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Your variable: ='{&amp;lt;Link_Date={"&amp;gt;=$(=DATE('&amp;amp;$1&amp;amp;'(vToDate)))&amp;lt;=$(vToDate)"}&amp;gt;}'&lt;/P&gt;&lt;P&gt;Your expression: sum($(YourVarName('weekstart'))Applications)&lt;/P&gt;&lt;P&gt;Regards!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Aug 2016 07:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variabilize-set-modifier/m-p/1108705#M890325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-30T07:41:34Z</dc:date>
    </item>
  </channel>
</rss>

