<?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 Calculated dimension / set analysis expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413995#M154013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand something here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calculated dimension with a "IF" condition and the "suppress null' option checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I want only display the values of my dimension which validate the condition on the dimension formula.&lt;/P&gt;&lt;P&gt;It's seems not work here as when I select a Date which is not the one in condition, the dimension still display values outside the selection range.&lt;/P&gt;&lt;P&gt;So the "supress null" option don't work for some reason (my set analysis expression coumns may be the cause?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, I want count all the ID on 2013 by Group without taking account the dimension condition or the selections, &lt;/P&gt;&lt;P&gt;while the group in the table must be only the one which validate the selection and dimension formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The {1} clause seems not do the trick here. Add aggr&amp;nbsp; function call do it but it's not what I want and the dimension stil display out of selection scope values&lt;/P&gt;&lt;P&gt;I guess the dimension still taken in account in spite of the {1} ? Any method to override it on my expression column without use aggr?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some columns to try to do this, but I want if possible get this result with set analysis without aggr function as the real application is really more complex and on huge volume (&amp;gt; 20 millions line on 20 columns) it's better for performances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't edit load script, so I want this only using expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Mar 2013 14:17:24 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-03-06T14:17:24Z</dc:date>
    <item>
      <title>Calculated dimension / set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413995#M154013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't understand something here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a calculated dimension with a "IF" condition and the "suppress null' option checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I want only display the values of my dimension which validate the condition on the dimension formula.&lt;/P&gt;&lt;P&gt;It's seems not work here as when I select a Date which is not the one in condition, the dimension still display values outside the selection range.&lt;/P&gt;&lt;P&gt;So the "supress null" option don't work for some reason (my set analysis expression coumns may be the cause?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, I want count all the ID on 2013 by Group without taking account the dimension condition or the selections, &lt;/P&gt;&lt;P&gt;while the group in the table must be only the one which validate the selection and dimension formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The {1} clause seems not do the trick here. Add aggr&amp;nbsp; function call do it but it's not what I want and the dimension stil display out of selection scope values&lt;/P&gt;&lt;P&gt;I guess the dimension still taken in account in spite of the {1} ? Any method to override it on my expression column without use aggr?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some columns to try to do this, but I want if possible get this result with set analysis without aggr function as the real application is really more complex and on huge volume (&amp;gt; 20 millions line on 20 columns) it's better for performances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't edit load script, so I want this only using expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 14:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413995#M154013</guid>
      <dc:creator />
      <dc:date>2013-03-06T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension / set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413996#M154014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Group as dimension and as expression: count({1&amp;lt;Year={'2013'},Group=p({&amp;lt;Date={'2013-01-01'}&amp;gt;}Group)&amp;gt;} DISTINCT Items)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 14:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413996#M154014</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-03-06T14:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension / set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413997#M154015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, but I can't do this as in the real application the dimension is really more complex : &lt;/P&gt;&lt;P&gt;dimension is a top 10 calculated on user selection with rank condition on sub aggregate, and with 10 or more different expression columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All expressions must be aggregated by the dimension taking account of the "IF" clauses (or not on some case like on my example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All expression &lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;&lt;A&gt;&lt;/A&gt;must be evaluated,grouped on the dimension value printed (so in example the Group value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For simple count with some other filter set analysis, on current selection only, it seems ok : &lt;/P&gt;&lt;P&gt;dimension value + "IF" condition hidden in the dimension formula + filter set analysis on current selection, seems all used in the formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for more complex ones where I want NOT take the "IF" clause of the dimension and/or limit to the current selection,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find other way than add an AGGR call group by the Group field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try also some things with TOTAL clause but It changed nothing and I don't think It's useful here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 14:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413997#M154015</guid>
      <dc:creator />
      <dc:date>2013-03-06T14:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension / set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413998#M154016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a solution:&lt;/P&gt;&lt;P&gt;Create a field 20130101 with a "flag"&amp;nbsp; and a 2013-field with a "flag".&lt;/P&gt;&lt;P&gt;In my example I've made a left join, but you should do it while loading the base table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 17:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413998#M154016</guid>
      <dc:creator>johanlindell</dc:creator>
      <dc:date>2013-03-06T17:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension / set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413999#M154017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunatly I can't do like this as the Date condition use in fact a variable.&lt;/P&gt;&lt;P&gt;My error to not correctly write it in my example application &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dimenson condition is in fact Date=vDate with vDate a variable updated by the users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is two date:&lt;/P&gt;&lt;P&gt;1-the one fixed in the variable vDate used in dimension condition to resraint to a specific date&lt;/P&gt;&lt;P&gt;2-the one selected by the field Date to have the status of my data at the selected date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The (2) is used to have the data status at a specific time considering only the ID of the data which were available the (1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it must remain dynamic it's not possible to use a flag here as I have thousands date possible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 11:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/413999#M154017</guid>
      <dc:creator />
      <dc:date>2013-03-18T11:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated dimension / set analysis expression</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/414000#M154018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes it tricker.... I think you should look into solving this in another way. Why not add a "DayInYear"-field and use this in your expression to find the values on the first day of the year. And change the Group-dimension to be the "real" group and not a calculated expression.&lt;/P&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;P&gt;/Johan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-dimension-set-analysis-expression/m-p/414000#M154018</guid>
      <dc:creator>johanlindell</dc:creator>
      <dc:date>2013-03-18T13:54:00Z</dc:date>
    </item>
  </channel>
</rss>

