<?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 set expression with expression or dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293332#M495945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeas I tried, but in that way i have for every record the sum of the All SellDay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie:&lt;BR /&gt;StockFrom = '01/01/2012' [...] '10/01/2012'&lt;BR /&gt;At the DimensionValue '02/01/2012' I would like Only the sell of the '02/01/2012', including the SellDay = P(StockFrom) consider mi all the SellDay in the period and the values is the same for every day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking to join it with StockFrom something else.&lt;BR /&gt;Anyway, soon I'll get a look to your example and I'll let you know.&lt;BR /&gt;I supposed it should be something like if want to see something like&lt;BR /&gt;"complete date with year" - Products sold in date - Product sold in the same date of the previous year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i'm getting lost in it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, now i'll take you file, if i'll have some problems i'll upload mine&lt;BR /&gt;k you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 12:14:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-20T12:14:46Z</dc:date>
    <item>
      <title>set expression with expression or dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293330#M495943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I've the following problem.&lt;BR /&gt;I want to see the stock day by day of my products, but i do not have historical data.&lt;BR /&gt;I've a table where I've the current stock and another table with the sellings.&lt;BR /&gt;The selling table have 2 fields StockFrom and SellDay.&lt;BR /&gt;StockFrom is even the key field to connecto the selling table with the current stock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I need to find out the stock at a give day; &lt;BR /&gt;The formula for every day is &lt;BR /&gt;Current stock with StockFrom&amp;lt;Min([given date]) &lt;BR /&gt;+ Current Stock with StockFrom=[given date] &lt;BR /&gt;+ selling with StockFrom=[given date] &lt;BR /&gt;- selling with SellDay=[given date].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now.. everything quite easy if you use a Data Island and IFs... but extremly slow in my situation, so I decided to use StockFrom as main date.&lt;BR /&gt;so... evrything easy... until the SellDay = [given date]&lt;BR /&gt;I was thinking to use something like&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt;SellDay={StockFrom}&amp;gt;}&lt;/P&gt;&lt;P&gt;TOTAL SellDay)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;but I can't handle it...&lt;BR /&gt;Does someone have an idea of how could it be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 10:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293330#M495943</guid>
      <dc:creator />
      <dc:date>2012-01-20T10:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with expression or dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293331#M495944</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;Did you try using P() function in set analysis to get all possible values of StockFrom into SellDay?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&amp;lt; SellDay = P(StockFrom) &amp;gt;}&lt;/P&gt;&lt;P&gt;TOTAL SellDay)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than playing with If() and data islands, I'd let the users populate the date using a slider/calendar object and a variable, like in &lt;A _jive_internal="true" href="https://community.qlik.com/community.qlik.com/qlikviews/1075"&gt;this example&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 11:48:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293331#M495944</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-20T11:48:26Z</dc:date>
    </item>
    <item>
      <title>set expression with expression or dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293332#M495945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeas I tried, but in that way i have for every record the sum of the All SellDay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie:&lt;BR /&gt;StockFrom = '01/01/2012' [...] '10/01/2012'&lt;BR /&gt;At the DimensionValue '02/01/2012' I would like Only the sell of the '02/01/2012', including the SellDay = P(StockFrom) consider mi all the SellDay in the period and the values is the same for every day&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking to join it with StockFrom something else.&lt;BR /&gt;Anyway, soon I'll get a look to your example and I'll let you know.&lt;BR /&gt;I supposed it should be something like if want to see something like&lt;BR /&gt;"complete date with year" - Products sold in date - Product sold in the same date of the previous year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i'm getting lost in it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, now i'll take you file, if i'll have some problems i'll upload mine&lt;BR /&gt;k you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 12:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293332#M495945</guid>
      <dc:creator />
      <dc:date>2012-01-20T12:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with expression or dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293333#M495946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here the example file, hope it has data inside&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 12:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293333#M495946</guid>
      <dc:creator />
      <dc:date>2012-01-20T12:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with expression or dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293334#M495947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Terry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove the TOTAL from the Count() expression in the chart on the right. As specified, TOTAL will return the same values for all the values in the dimension. Are those the right values without the TOTAL? In the script, there are only two autogenerated tables with dates, but not the rest of the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 13:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293334#M495947</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-20T13:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with expression or dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293335#M495948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the rest of the data i removed since it loads from SQL DataBase and there were account and passwords in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the TOTAL (there is not in the sent file) is just taking some results, and is giving me the values of Sold elements with StockFrom = the dimension date (i want where SellDay = dimension date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the queries are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT SellDay,&amp;nbsp; StockFrom FROM Contracts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT StockFrom, VIN FROM Stock&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 13:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293335#M495948</guid>
      <dc:creator />
      <dc:date>2012-01-20T13:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: set expression with expression or dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293336#M495949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think maybe I should use a support table something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select SellDay AS StockFrom, ContractID FROM Contract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And take the Count(ContractID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what you think?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 13:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-expression-with-expression-or-dimensions/m-p/293336#M495949</guid>
      <dc:creator />
      <dc:date>2012-01-20T13:26:04Z</dc:date>
    </item>
  </channel>
</rss>

