<?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: SET Analysis Not working within Pick(Match(ValueList())) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1704432#M54006</link>
    <description>&lt;P&gt;I have the same exact issue. Were you able to resolve this?&lt;/P&gt;</description>
    <pubDate>Fri, 22 May 2020 14:15:32 GMT</pubDate>
    <dc:creator>THizon1234</dc:creator>
    <dc:date>2020-05-22T14:15:32Z</dc:date>
    <item>
      <title>SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539202#M38916</link>
      <description>&lt;P&gt;I'm using Sense September 2018 Patch 2.&lt;/P&gt;&lt;P&gt;I'm having an issue with SET analysis formulas that are supposed to show a rolling 12 months, regardless if a Date is selected or not.&lt;/P&gt;&lt;P&gt;The below formulas work on their own with a Date dimension in a straight table, pivot table or chart.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once it's placed into a Pick(Match(ValueList()))), it only displays the selected date and not the rolling 12 months.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vBegUnitsByDates&amp;nbsp;&lt;/SPAN&gt;= Count(Distinct {$&amp;lt;[Beginning Site] = {'1'}, [Date]= {'&amp;gt;=$(=AddMonths(Max([Date]),-12))&amp;lt;=$(=Max([Date]))'}&amp;gt;}[Site ID])&lt;/P&gt;&lt;P&gt;vBeg$ByDate =&amp;nbsp;Sum( {&amp;lt;[Beginning Site] = {'1'}, [Date] = {'&amp;gt;=$(=AddMonths(Max([Date]),-12))&amp;lt;=$(=Max([Date]))'}&amp;gt;}[Site Beginning $'s])&lt;/P&gt;&lt;P&gt;=Pick(Match(ValueList('Customers',&lt;BR /&gt;'Dollars',&lt;BR /&gt;'Avg $/Customers'),&lt;BR /&gt;'Customers',&lt;BR /&gt;'Dollars',&lt;BR /&gt;'Avg $/Customers'),&lt;BR /&gt;num($(vBegUnitsByDates),'#,##0'),&lt;BR /&gt;num($(vBeg$ByDate),'$#,##0'),&lt;BR /&gt;num(($(vBeg$ByDate))/($(vBegUnitsByDates)),'$#,##0')&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;I've tried to use the formula in the Pick(Match(ValueList())) instead of the variable, but get the same results.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if anybody needs more information that could help clarify my problem.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 16:30:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539202#M38916</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2019-02-04T16:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539225#M38919</link>
      <description>&lt;P&gt;What all dimensions do you have in the chart except for the ValueList() dimension?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539225#M38919</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-04T17:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539230#M38920</link>
      <description>&lt;P&gt;Other than the ValueList() I am only including the Date dimension as I want to see the Rolling 12 Months.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:23:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539230#M38920</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2019-02-04T17:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539231#M38921</link>
      <description>&lt;P&gt;okay and do you see any value getting populated in the chart or is it completely null?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539231#M38921</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-04T17:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539233#M38922</link>
      <description>&lt;P&gt;I am getting results, but ONLY for the month selected.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I select Jan-2018, I want to see Jan-2017 thru Jan-2018.&amp;nbsp; However, I am only seeing Jan-2018&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539233#M38922</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2019-02-04T17:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539237#M38923</link>
      <description>&lt;P&gt;I guess I should also mention that if NO Date is selected, I get the Rolling 12 Months based on the Max Date.&lt;/P&gt;&lt;P&gt;It's only when I select a Date that the SET Analysis doesn't work as it should.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:41:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539237#M38923</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2019-02-04T17:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539240#M38924</link>
      <description>&lt;P&gt;I suggest you to create an Island table in the script to do this instead of using ValueList(). The benefit is that you cannot ignore selections in a valulist() dimension, where as an island table dimension can be specified like this&lt;/P&gt;&lt;PRE&gt;Only({1} IslandTableDim)&lt;/PRE&gt;&lt;P&gt;Allowing you to ignore selections.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 17:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539240#M38924</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-04T17:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539247#M38925</link>
      <description>&lt;P&gt;I created an Inline table that consists of the ValueList() values, but I'm not sure how to use it with the variable considering it is not associated with the source table that the variable is calculating.&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;"Trend Analysis"&lt;BR /&gt;"Customers",&lt;BR /&gt;"Dollars",&lt;BR /&gt;"Avg $/Customers"&lt;BR /&gt;] ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using it with an IF(), but got the same results as the ValueList().&lt;/P&gt;&lt;P&gt;if([Trend Analysis] = 'Customers', $(vBegUnitsByDates),&lt;BR /&gt;&amp;nbsp; if([Trend Analysis] = 'Dollars', $(vBeg$ByDate),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if([Trend Analysis] = 'Avg $/Customers', $(vBeg$ByDate) / $(vBegUnitsByDates))))&lt;/P&gt;&lt;P&gt;How can I get this to work with the ONLY() function?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 18:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539247#M38925</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2019-02-04T18:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539251#M38926</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;PRE&gt;Pick(Match(&lt;FONT color="#FF0000"&gt;Only({1}&lt;/FONT&gt; [Trend Analysis]&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;,
  'Customers',
  'Dollars',
  'Avg $/Customers'),
 
 $(vBegUnitsByDates),
  $(vBeg$ByDate),
  $(vBeg$ByDate) / $(vBegUnitsByDates)
)&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 18:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539251#M38926</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-04T18:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539269#M38927</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I dropped that into the table and I still got the same results for the single month when a Date was selected.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 18:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539269#M38927</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2019-02-04T18:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539273#M38928</link>
      <description>&lt;P&gt;Would it be possible to share a sample to show the issue?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 19:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539273#M38928</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-04T19:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539326#M38938</link>
      <description>&lt;P&gt;Let me know if it comes through.&lt;/P&gt;&lt;P&gt;The first sheet is built how I want it to be.&lt;/P&gt;&lt;P&gt;The 2nd sheet is what we've been attempting with some different layouts.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 21:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539326#M38938</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2019-02-04T21:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539604#M38950</link>
      <description>&lt;P&gt;When you say second sheet, I guess you mean Trend Analysis sheet, right? I am seeing this&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/5206iBDAD323916F040AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What is wrong with this?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 12:12:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539604#M38950</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-05T12:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539623#M38955</link>
      <description>&lt;P&gt;Are you seeing two sheets in the application?&lt;/P&gt;&lt;P&gt;The Trend Analysis sheet is what I originally built.&amp;nbsp; If you select a Date, then it only displays that single Date's results.&amp;nbsp; It is supposed to show a rolling 12 Months for each Max Date.&amp;nbsp; If you select 5/1/2018, then it should show results for every date Month between 5/1/2017 thru 5/1/2018.&lt;/P&gt;&lt;P&gt;Do you see the 2nd sheet that is labeled Trend Analysis Testing?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 12:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539623#M38955</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2019-02-05T12:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539703#M38963</link>
      <description>&lt;P&gt;Okay, I see 3 sheets and I guess I had to use the third sheet. I was not able to do this with just the Island Table, but had to introduce Alternate State? The version of Qlik Sense that you use, does it have Alternate State in it? If you do, then you can try this.... move the chart to the alternate state and change the variables to this&lt;/P&gt;&lt;P&gt;vBegUnitsByDates&lt;/P&gt;&lt;PRE&gt;num(If(GetSelectedCount([Product Line]) = 0
,
Count(Distinct {&amp;lt;[Site Beginning Site] = {'1'}, [Date]= {'&amp;gt;=$(=AddMonths(Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]),-12))&amp;lt;=$(=Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]))'}&amp;gt;}[Site ID])
,
  if(GetSelectedCount([Natural Class]) = 0
  ,
  Count(Distinct {&amp;lt;[Prod_Beg_Key] = {'Y'}, [Date]= {'&amp;gt;=$(=AddMonths(Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]),-12))&amp;lt;=$(=Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]))'}&amp;gt;}[Site ID])
  ,
  Count(Distinct {&amp;lt;[Beginning Customer] = {'1'}, [Date]= {'&amp;gt;=$(=AddMonths(Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]),-12))&amp;lt;=$(=Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]))'}&amp;gt;}[Site ID])
  )    
),'#,##0')&lt;/PRE&gt;&lt;P&gt;vBeg$ByDate&lt;/P&gt;&lt;PRE&gt;If(GetSelectedCount([Product Line]) = 0
,
Sum( {&amp;lt;[Site Beginning Site] = {'1'}, [Date] = {'&amp;gt;=$(=AddMonths(Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]),-12))&amp;lt;=$(=Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]))'}&amp;gt;}[Site Beginning $'s])
,
  if(GetSelectedCount([Natural Class]) = 0
  ,
  Sum( {&amp;lt;[Prod_Beg_Key] = {'Y'}, [Date] = {'&amp;gt;=$(=AddMonths(Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]),-12))&amp;lt;=$(=Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]))'}&amp;gt;}[Beginning $'s])
  ,
  Sum( {&amp;lt;[Beginning Customer] = {'1'}, [Date] = {'&amp;gt;=$(=AddMonths(Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]),-12))&amp;lt;=$(=Max(&lt;FONT color="#FF0000"&gt;{$}&lt;/FONT&gt;[Date]))'}&amp;gt;}[Beginning $'s])
  )    
)&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Feb 2019 14:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539703#M38963</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-02-05T14:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539807#M38971</link>
      <description>&lt;P&gt;Unfortunately, we do not have Alternate State added to our version yet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you look at the first sheet 'Summary', you will see a chart on the bottom.&amp;nbsp; It is using $(vEndingUnitsByDates).&amp;nbsp; That same variable is in the table on the 2nd sheet.&amp;nbsp; On the 'Summary' sheet, it is only used with the Date Dimension and NOT being used in a calculated measure.&amp;nbsp; It's just called by itself as a measure.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the 'Trend Analysis' sheet, it's being used in a calculated measure in the Pick(Match(ValueList())).&amp;nbsp; That is the big difference and the cause of the issue.&amp;nbsp; I like the use of the Only() function and might replace the ValueList(), but it's not a fix right now.&lt;/P&gt;&lt;P&gt;BTW...Thank you for all of your help so far!&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 17:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1539807#M38971</guid>
      <dc:creator>mikelutomski</dc:creator>
      <dc:date>2019-02-05T17:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis Not working within Pick(Match(ValueList()))</title>
      <link>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1704432#M54006</link>
      <description>&lt;P&gt;I have the same exact issue. Were you able to resolve this?&lt;/P&gt;</description>
      <pubDate>Fri, 22 May 2020 14:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SET-Analysis-Not-working-within-Pick-Match-ValueList/m-p/1704432#M54006</guid>
      <dc:creator>THizon1234</dc:creator>
      <dc:date>2020-05-22T14:15:32Z</dc:date>
    </item>
  </channel>
</rss>

