<?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: Dynamic Expressions per Row Using If() no Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575586#M544778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't thank you enough ... very elegant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 21:33:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-28T21:33:16Z</dc:date>
    <item>
      <title>Dynamic Expressions per Row Using If() no Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575581#M544773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So this might not even be possible or so obvious that I have blinders on at this point. That being said I would like to load a list of measures from and Excel document, including some meta data about the dimension and an expression. I started with Set Analysis but after reading, realized that the calculation performs once for the chart and not on a row level, So I have implemented If() statements which I thought might be different but the results are similar to what Set Analysis was doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have scaled back a sample application of what it is I was trying to do for reference and got the same behavior. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the load script I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Sample Sales &lt;/P&gt;&lt;P&gt;Sales:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Counter,Store,Year,Month,Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,A,2014,Jan,1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,A,2014,Feb,1.5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,A,2014,Jan,2&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,A,2014,Feb,3.5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,A,2014,Jan,4&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,A,2014,Feb,4.5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,A,2014,Jan,5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,A,2014,Feb,5.5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,B,2014,Jan,1&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,B,2014,Feb,1.5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,B,2014,Jan,2&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,B,2014,Feb,3.5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,B,2014,Jan,4&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,B,2014,Feb,4.5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,B,2014,Jan,5&lt;/P&gt;&lt;P&gt;&amp;nbsp; 1,B,2014,Feb,5.5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Sample Expression Data Island&lt;/P&gt;&lt;P&gt;_Expressions:&lt;/P&gt;&lt;P&gt;Load * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Name,myExpression&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sales Total (Amount),"Sum(If(Month='MM' and Year='YYYY', Sales,0))"&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sales Total (Transactions),"Sum(If(Month='MM' and Year='YYYY', Counter,0))"&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the chart, I have a table with the Name of the Expression as the dimension and a couple of sample expression fields for months, Jan and Feb which are manually wired in at this time.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SampleDesign.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56153_SampleDesign.JPG.jpg" style="width: 620px; height: 348px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see I get - values, however if I select a single record from the measure Name list, the calculations perform as expected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SampleDesign1.JPG.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/56154_SampleDesign1.JPG.jpg" style="width: 620px; height: 225px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone has any comments or suggestions, I would greatly appreciate it. Keep in mind my example is sample only, the actual project was slated to have many more measures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the sample qvw file as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 20:11:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575581#M544773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-28T20:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expressions per Row Using If() no Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575582#M544774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what you're looking for is the solution &lt;A href="https://community.qlik.com/qlik-users/13229"&gt;Jonathan Dienst&lt;/A&gt; posted here: &lt;A href="https://community.qlik.com/message/286947"&gt;Re: Expressions in Fields&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 20:45:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575582#M544774</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-28T20:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expressions per Row Using If() no Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575583#M544775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;added two charts (green color) and made some changes that should make it lot simpler...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 20:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575583#M544775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-28T20:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expressions per Row Using If() no Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575584#M544776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Gysbert ... that first sentence summed it up for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 21:00:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575584#M544776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-28T21:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expressions per Row Using If() no Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575585#M544777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached an example to my original post that shows another trick, i.e. passing parameters to the expression in the variable. That way you don't need to add expressions for each month. You can pass the values of the Month field to the expression. See the pivot table below the Year listbox for an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 21:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575585#M544777</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-28T21:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Expressions per Row Using If() no Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575586#M544778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't thank you enough ... very elegant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 21:33:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-Expressions-per-Row-Using-If-no-Set-Analysis/m-p/575586#M544778</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-28T21:33:16Z</dc:date>
    </item>
  </channel>
</rss>

