<?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 Dimentia in Pivot Tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510833#M691877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still am having issues writing the function, I am not the best at forming them correctly. Can someone help me write this function out or steer me towards a good document on forming functions correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; &lt;STRONG&gt;Aggr(Sum(amount),IF(trantype='ActualPymnts' and trandate&amp;lt;=curmonth)) &lt;/STRONG&gt;but I know that is not right. I have a hard time understandingfunction layouts in Qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2013 14:58:30 GMT</pubDate>
    <dc:creator>MalcolmCICWF</dc:creator>
    <dc:date>2013-09-12T14:58:30Z</dc:date>
    <item>
      <title>Dimension Dimentia in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510831#M691875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a Pivot Table report in Qlikview and running into some issues with a Dimension I am trying to create. I keep getting an "Error in Calculation" statement with everything I try. I am having a tough time working through this one. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each of the 'TRANTYPE' field I want to sum the amounts under the years, but each trantype sums different dates. My pivot table has each amount broken down by Year(TRANDATE) and then Month(TRANDATE)&amp;nbsp; created in my script. I also have a static date of of the Year/Month I am refreshing this report called 'CURMONTH'. Both date fields behind the scenes are formatted MMDDYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;I am trying to say for my dimension, if the field TRANTYPE is "ActualPymnts" and the TRANDATE is&amp;nbsp; &amp;lt;=&amp;nbsp; the CURMONTH, then give me the sum of the AMOUNT field for those. S looking at the numbers below sum all 2003 through August 2013. That way each month I run the report and have a new CURMONTH, it will continue to add the amounts into this SUM dimension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone Dimension/Pivot Table savvy enough to help me work through this?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46464_Capture.JPG" style="width: 620px; height: 159px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 22:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510831#M691875</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-09-11T22:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Dimentia in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510832#M691876</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= Aggr(&lt;STRONG&gt;Sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;AMOUNT&lt;/SPAN&gt;)&lt;/STRONG&gt;,TranDate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: instead of bold expression, use your expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2013 22:15:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510832#M691876</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-09-11T22:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Dimentia in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510833#M691877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I still am having issues writing the function, I am not the best at forming them correctly. Can someone help me write this function out or steer me towards a good document on forming functions correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp; &lt;STRONG&gt;Aggr(Sum(amount),IF(trantype='ActualPymnts' and trandate&amp;lt;=curmonth)) &lt;/STRONG&gt;but I know that is not right. I have a hard time understandingfunction layouts in Qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 14:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510833#M691877</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-09-12T14:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Dimentia in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510834#M691878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So as I explained I am trying to SUM al of the the AMOUNT if the TRANTYPE is 'ActualPymnts' and the TRANDATE &amp;lt;= CURMONTH.&amp;nbsp; I cannot seem to form the function correctly.&amp;nbsp; I will then need to do an OR statement with another set up criteria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 15:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510834#M691878</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-09-12T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Dimentia in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510835#M691879</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;try like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(Sum(amount),IF(trantype='ActualPymnts' and Floor(trandate)&amp;lt;=Floor(curmonth))) &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Why we use floor means may be dateformat not same for transdate and curmonth. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If its not correct please give the sample application.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 15:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510835#M691879</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2013-09-12T15:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Dimentia in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510836#M691880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried and to no avail. I can not get it to work inthe dimensions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cloned the table I had and removed the month/year dimensions and Amount expression and I can get it to work perfect per the example below as shown by "PeriodTD". but the same function still shows as error in formula when added as a calculated dimension... this makes no sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is what works in the Expression: &lt;STRONG style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;trantype&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='OrigForecast' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;trandate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;curmonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;amount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,0)) &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="46498" alt="Capture.JPG" class="jive-image" src="https://community.qlik.com/legacyfs/online/46498_Capture.JPG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 16:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510836#M691880</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-09-12T16:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Dimentia in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510837#M691881</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;Try like this&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;trantype={'OrigForecast'},trandate={"&amp;lt;={$(=curmonth)}"}&amp;gt;}amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the trandate and curmonth are same format otherwise change the curmonth dateformate like trandate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2013 17:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510837#M691881</guid>
      <dc:creator>v_iyyappan</dc:creator>
      <dc:date>2013-09-12T17:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Dimentia in Pivot Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510838#M691882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, still a no go. My dates are formatted the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 16:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Dimentia-in-Pivot-Tables/m-p/510838#M691882</guid>
      <dc:creator>MalcolmCICWF</dc:creator>
      <dc:date>2013-09-24T16:05:36Z</dc:date>
    </item>
  </channel>
</rss>

