<?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 and mapping functions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1981991#M1221037</link>
    <description>&lt;P&gt;Just use date as horizontally dimension and sum(Sales) as expression and then selecting the dates which you want to see.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 13:21:26 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-09-16T13:21:26Z</dc:date>
    <item>
      <title>Set Analysis and mapping functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1981875#M1221032</link>
      <description>&lt;P&gt;Hello everybody&lt;BR /&gt;I ask if anyone can help me.&lt;BR /&gt;I have a table like:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Id,&amp;nbsp; &amp;nbsp;DateTest1,&amp;nbsp; &amp;nbsp; Sales,&amp;nbsp; &amp;nbsp;NObserv&lt;BR /&gt;1,&amp;nbsp; &amp;nbsp; 09/30/2022,&amp;nbsp; &amp;nbsp;125,&amp;nbsp; &amp;nbsp;1&lt;BR /&gt;1,&amp;nbsp; &amp;nbsp; 09/24/2022,&amp;nbsp; &amp;nbsp;141,&amp;nbsp; &amp;nbsp;2&lt;BR /&gt;1,&amp;nbsp; &amp;nbsp; 09/21/2022,&amp;nbsp; &amp;nbsp;105,&amp;nbsp; &amp;nbsp;3&lt;BR /&gt;1,&amp;nbsp; &amp;nbsp; 09/13/2022,&amp;nbsp; &amp;nbsp;115,&amp;nbsp; &amp;nbsp;4&lt;BR /&gt;2,&amp;nbsp; &amp;nbsp; 09/30/2022,&amp;nbsp; &amp;nbsp;130,&amp;nbsp; &amp;nbsp;1&lt;BR /&gt;2,&amp;nbsp; &amp;nbsp; 09/24/2022,&amp;nbsp; &amp;nbsp;121,&amp;nbsp; &amp;nbsp;2&lt;BR /&gt;2,&amp;nbsp; &amp;nbsp; 09/21/2022,&amp;nbsp; &amp;nbsp; &amp;nbsp;95,&amp;nbsp; &amp;nbsp; 3&lt;BR /&gt;2,&amp;nbsp; &amp;nbsp; 09/13/2022,&amp;nbsp; &amp;nbsp;102,&amp;nbsp; &amp;nbsp;4&lt;BR /&gt;];&lt;BR /&gt;and I wish I could create a table using set analysis as below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Checco_0-1663317184232.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89247i80D514A6D06928AE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Checco_0-1663317184232.png" alt="Checco_0-1663317184232.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;That is, each column contains the sum of the 'Sales' field for each observation progressive:&lt;BR /&gt;column 1 -&amp;gt; NObserv = 1 (Date = '30 / 09/2022 ')&lt;BR /&gt;column 2 -&amp;gt; NObserv = 2 (Date = '24 / 09/2022 ')&lt;BR /&gt;column 3 -&amp;gt; NObserv = 3 (Date = '21 / 09/2022 ')&lt;/P&gt;
&lt;P&gt;My problem is that I can't get the value of the corresponding date to appear in the label of each column.&lt;BR /&gt;I was thinking of using mapping.&lt;BR /&gt;Can anyone tell me where to find (link) documentation on the mapping function and, if possible, also some good examples?&lt;/P&gt;
&lt;P&gt;Thank you all&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:34:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1981875#M1221032</guid>
      <dc:creator>Checco</dc:creator>
      <dc:date>2022-09-16T08:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and mapping functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1981991#M1221037</link>
      <description>&lt;P&gt;Just use date as horizontally dimension and sum(Sales) as expression and then selecting the dates which you want to see.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1981991#M1221037</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-16T13:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and mapping functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1982186#M1221049</link>
      <description>&lt;P&gt;Thanks Marcus for your reply.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I probably didn't understand.&lt;BR /&gt;The expression is fine as I did (with Set Analysis). This allows me to calculate for example the differences between contiguous columns.&lt;BR /&gt;Each column is calculated with expressions such as:&lt;BR /&gt;Sum ({$ &amp;lt;NObserv = {1}&amp;gt;} Sales)&lt;BR /&gt;Sum ({$ &amp;lt;NObserv = {2}&amp;gt;} Sales)&lt;BR /&gt;Sum ({$ &amp;lt;NObserv = {3}&amp;gt;} Sales)&lt;BR /&gt;...............................&lt;BR /&gt;My problem is how to make sure that in the label of each column appears the value of the date corresponding to the value of the variable NObserv:&lt;BR /&gt;1 &amp;lt;--&amp;gt; Label: 09/30/2022&lt;BR /&gt;2 &amp;lt;--&amp;gt; Label: 09/24/2022&lt;BR /&gt;3 &amp;lt;--&amp;gt; Label: 09/21/2022&lt;/P&gt;
&lt;P&gt;.......&lt;/P&gt;
&lt;P&gt;I hope I am clear&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank Francesco&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 10:37:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1982186#M1221049</guid>
      <dc:creator>Checco</dc:creator>
      <dc:date>2022-09-17T10:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and mapping functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1982237#M1221052</link>
      <description>&lt;P&gt;You may fetch the corresponding dates with something like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;only({$ &amp;lt;NObserv = {1}&amp;gt;} DateTest1)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or if there are multiple dates possible even with something like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;date(min({$ &amp;lt;NObserv = {1}&amp;gt;} DateTest1)) ' - ' &amp;amp;&amp;nbsp;date(max({$ &amp;lt;NObserv = {1}&amp;gt;} DateTest1))&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But like already hinted above - without a more specific reason you might not mandatory need multiple expressions else a single one and the appropriate dimensions will also return the views.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- Marcus&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 12:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1982237#M1221052</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-18T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and mapping functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1983800#M1221102</link>
      <description>&lt;P&gt;Thanks Marcus for your valuable suggestions.&lt;BR /&gt;I tried to make the changes that you indicated to me (if I understand correctly). See the attached file see the "Sales" chart. But there are a couple of problems:&lt;BR /&gt;1- Still in the "Sales" chart, how can I make the difference between two columns?&lt;BR /&gt;2-If I add other variables I can't correctly size the column width-. Because?&lt;/P&gt;
&lt;P&gt;Also I'm trying to do something similar using variables (see "Comparison dates" chart).&lt;/P&gt;
&lt;P&gt;Thanks 1000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Francesco&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 16:42:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1983800#M1221102</guid>
      <dc:creator>Checco</dc:creator>
      <dc:date>2022-09-21T16:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis and mapping functions</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1983998#M1221117</link>
      <description>&lt;P&gt;Your origin query didn't mention that the aim is a comparing of certain selected values against each other and calculating a rate from it - therefore my suggestion to sum the values simply against the dimension.&lt;/P&gt;
&lt;P&gt;Probably there are further possibilities to create comparison-views, for example with interrecord-functions like above/before or maybe alternate states but I think none would be more suitable as your chosen approach with multiple expressions - each picking one value respectively calculating their differences. You may consider to replace the variable-control against a selection-control by querying the min/max-values of Prog within the set analysis. Means instead of:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Prog={$(v_Sel)}&amp;gt;} Sales)&lt;/P&gt;
&lt;P&gt;you may use:&lt;/P&gt;
&lt;P&gt;Sum({&amp;lt;Prog={"$(=min(Prog))"}&amp;gt;} Sales)&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 06:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-and-mapping-functions/m-p/1983998#M1221117</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-22T06:08:21Z</dc:date>
    </item>
  </channel>
</rss>

