<?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: Dimension Problem. Aggr? Dunno in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260114#M98173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I can`t use it int the expression because I want to show all the lines involved (Invoices+Credit Notes+Payments), but I think I`m cllose to&amp;nbsp; to the solution thanks to you, see:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=&amp;nbsp; IF((CalendarDate&amp;lt;=(Date(vFFF))) AND(CalendarDate&amp;gt;=(Date(vFIF)) AND&lt;/P&gt;&lt;P&gt;([VLE.Tipo Documento]='Invoice')),&lt;/P&gt;&lt;P&gt;[VLE. Nº Mov],IF([VLE. Nº Mov]=[VLE. Nº Mov],[VLE. Nº Mov]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is:&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;If you are an Invoice, let me see all the invoices into the range, &lt;/P&gt;&lt;P&gt;but if your are not an invoice let me see all the lines&lt;/P&gt;&lt;P&gt;with the common "Mov" Filed value of those invoices lines,&lt;/P&gt;&lt;P&gt; whatever your Date.&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2011 15:15:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-19T15:15:37Z</dc:date>
    <item>
      <title>Dimension Problem. Aggr? Dunno</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260112#M98171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, I have a Straight Table with several dimensions and one expression (Sum(Amount)). This table shows the Invoices, Credit Notes and Payments of my suppliers. &lt;/P&gt;&lt;P&gt;When a Invoice has been closed by a Credit NOte, a Payment or both, the different lines have a common field value ([Nº Mov]) as you can see in the picture.&lt;IMG alt="Captura.JPG" class="jive-image-thumbnail jive-image" onclick="" src="https://community.qlik.com/legacyfs/online/7970_Captura.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;There an Invoice in red and a Credit NOte plus a Payment in green. Well what I'd like to get, is to change the MOv. Dimension into a Calculated dimension based on the date and the type of the Document. I have two Date Selector and I want that the invoices Date rules.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Captura.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/7971_Captura.JPG" /&gt;&lt;/P&gt;&lt;P&gt;I want a dimension like that &lt;/P&gt;&lt;P&gt;If (("Document Date" is between this two dates variables)) AND (Document Type=Invoice), "Mov") so showing only the Non null values I`d get it.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 12:45:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260112#M98171</guid>
      <dc:creator />
      <dc:date>2011-10-19T12:45:32Z</dc:date>
    </item>
    <item>
      <title>Dimension Problem. Aggr? Dunno</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260113#M98172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if( Fecha &amp;gt;= vFechaInicial and Fecha &amp;lt;= vFechaFinal and [Document Type]='Invoice', Mov)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as calculated dimension? I assumed vFechaInicial and vFechaFinal are variables you set in your calendar object. Fecha is your date field and [Document Type] your document type field. Mov field is called [N° Mov] instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have only one expression (and it will also work with more then one), you could also try this as expression instead of the calc. dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Fecha = {"&amp;gt;=$(vFechaInicial)&amp;lt;=$(vFechaFinal)"}, [Document Type] = {'Invoice'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using set analysis, which should perform better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 13:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260113#M98172</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-19T13:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Problem. Aggr? Dunno</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260114#M98173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I can`t use it int the expression because I want to show all the lines involved (Invoices+Credit Notes+Payments), but I think I`m cllose to&amp;nbsp; to the solution thanks to you, see:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=&amp;nbsp; IF((CalendarDate&amp;lt;=(Date(vFFF))) AND(CalendarDate&amp;gt;=(Date(vFIF)) AND&lt;/P&gt;&lt;P&gt;([VLE.Tipo Documento]='Invoice')),&lt;/P&gt;&lt;P&gt;[VLE. Nº Mov],IF([VLE. Nº Mov]=[VLE. Nº Mov],[VLE. Nº Mov]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The thing is:&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;If you are an Invoice, let me see all the invoices into the range, &lt;/P&gt;&lt;P&gt;but if your are not an invoice let me see all the lines&lt;/P&gt;&lt;P&gt;with the common "Mov" Filed value of those invoices lines,&lt;/P&gt;&lt;P&gt; whatever your Date.&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 15:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260114#M98173</guid>
      <dc:creator />
      <dc:date>2011-10-19T15:15:37Z</dc:date>
    </item>
    <item>
      <title>Dimension Problem. Aggr? Dunno</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260115#M98174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you want to achieve with this else part of your calculated dimension if statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF([VLE. Nº Mov]=[VLE. Nº Mov],[VLE. Nº Mov])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that this is equivalent to just [VLE. N° Mov]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood your last requirement line correctly I would try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;nbsp; IF((CalendarDate&amp;lt;=(Date(vFFF))) AND(CalendarDate&amp;gt;=(Date(vFIF)) AND ([VLE.Tipo Documento]='Invoice')),[VLE. Nº Mov],IF([VLE.Tipo Documento] &amp;lt;&amp;gt;'Invoice',[VLE. Nº Mov]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 15:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260115#M98174</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-19T15:22:57Z</dc:date>
    </item>
    <item>
      <title>Dimension Problem. Aggr? Dunno</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260116#M98175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to display all invoices that fall between the selected date range and all credit notes/payments regardless of the date but only those credit notes/payments that have the same [VLE. Nº Mov] as an invoice that falls within the date range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so you are best to do this in the expression with something along the lines of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt; [VLE. Nº Mov] = P({&amp;lt;[VLE.Tipo Documento] = {'Invoice'}, [CalendarDate] = {'&amp;gt;=$(=date(vFFF))&amp;lt;=$(=date(vFIF))'}&amp;gt;} [VLE. Nº Mov]) &amp;gt;} Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 15:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260116#M98175</guid>
      <dc:creator>jedgson</dc:creator>
      <dc:date>2011-10-19T15:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Problem. Aggr? Dunno</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260117#M98176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks a lot !! It works. In the meantime I solved in another way. Mapping this while loading the table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;Date(If("Document Type" &amp;lt;&amp;gt;'2', ApplyMap('MapFirstDateDocumentVendor',"Vendor Ledger Entry No_"), &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 8pt;"&gt;"Posting Date"),'DD/MM/YYYY') AS FirstDocumentDate;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;And then filtering by the FirstDocumentDate, the Date of the original Document, the invoice. So every line will have 2 dates, its real date and this FirstDocumentDate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you both for your time.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 09:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Problem-Aggr-Dunno/m-p/260117#M98176</guid>
      <dc:creator />
      <dc:date>2011-10-20T09:35:48Z</dc:date>
    </item>
  </channel>
</rss>

