<?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 Excel Pivot to QlikView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Excel-Pivot-to-QlikView/m-p/449047#M1156192</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to transfer my Excel pivot reports to QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data comes from a sql server DB and I use a variable to calculate the maturity in days depending on two columns. &lt;/P&gt;&lt;P&gt;In Excel this is an extra column and looks like this translated to QlikView:&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 _jivemacro_uid_13619648637896243" jivemacro_uid="_13619648637896243"&gt;&lt;P&gt;set vMaturityInDays = Num(Date([NetMaturity]))-Num(Date([CutoffDate]))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up another extra column ('not due') in Excel to show the different range of days depending on conditions.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33657" alt="col.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/33657_col.PNG" /&gt;&lt;/P&gt;&lt;P&gt;I transfered the Excel formula to QlikView like so:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13619648637883929" jivemacro_uid="_13619648637883929"&gt;&lt;P&gt;if ($(vMaturityInDays) &amp;gt;=0,'not due',if($(vMaturityInDays) &amp;gt;=-30,'&amp;lt;=30d',if($(vMaturityInDays)&amp;gt;=-90,'30d&amp;gt;&amp;lt;=90d',if($(vMaturityInDays) &amp;gt;=-180,'90d&amp;gt; &amp;lt;=180d','&amp;gt;180d'))))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel I can then take the 'not due' column and add it to the column filter in my pivot and I'm presented with this:&lt;IMG __jive_id="33659" alt="mat.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/33659_mat.PNG" /&gt;&lt;/P&gt;&lt;P&gt;The general calculation works within QlikView but I can't figure out how to transfer the splitted day ranges above over to QlikView.&lt;/P&gt;&lt;P&gt;Any ideas?&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>Tue, 19 Feb 2013 11:54:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-19T11:54:19Z</dc:date>
    <item>
      <title>Excel Pivot to QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Pivot-to-QlikView/m-p/449047#M1156192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm struggling to transfer my Excel pivot reports to QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data comes from a sql server DB and I use a variable to calculate the maturity in days depending on two columns. &lt;/P&gt;&lt;P&gt;In Excel this is an extra column and looks like this translated to QlikView:&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 _jivemacro_uid_13619648637896243" jivemacro_uid="_13619648637896243"&gt;&lt;P&gt;set vMaturityInDays = Num(Date([NetMaturity]))-Num(Date([CutoffDate]))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have set up another extra column ('not due') in Excel to show the different range of days depending on conditions.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33657" alt="col.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/33657_col.PNG" /&gt;&lt;/P&gt;&lt;P&gt;I transfered the Excel formula to QlikView like so:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13619648637883929" jivemacro_uid="_13619648637883929"&gt;&lt;P&gt;if ($(vMaturityInDays) &amp;gt;=0,'not due',if($(vMaturityInDays) &amp;gt;=-30,'&amp;lt;=30d',if($(vMaturityInDays)&amp;gt;=-90,'30d&amp;gt;&amp;lt;=90d',if($(vMaturityInDays) &amp;gt;=-180,'90d&amp;gt; &amp;lt;=180d','&amp;gt;180d'))))&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel I can then take the 'not due' column and add it to the column filter in my pivot and I'm presented with this:&lt;IMG __jive_id="33659" alt="mat.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/33659_mat.PNG" /&gt;&lt;/P&gt;&lt;P&gt;The general calculation works within QlikView but I can't figure out how to transfer the splitted day ranges above over to QlikView.&lt;/P&gt;&lt;P&gt;Any ideas?&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>Tue, 19 Feb 2013 11:54:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Pivot-to-QlikView/m-p/449047#M1156192</guid>
      <dc:creator />
      <dc:date>2013-02-19T11:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Pivot to QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Pivot-to-QlikView/m-p/449048#M1156193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still looking for some help on this topic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a sample application, please have a look: &lt;A __default_attr="1376" __jive_macro_name="qlikview" _modifiedtitle="mytest.qvw" class="jive_macro jive_macro_qlikview default_title _jivemacro_uid_13619722297816249" href="https://community.qlik.com/" jivemacro_uid="_13619722297816249" title="mytest.qvw"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting QlikView pivot table should look like the following screenshot of the Excel pivot.&lt;/P&gt;&lt;P&gt;The numbers below represent the &lt;STRONG&gt;Amount/1000 sum value &lt;/STRONG&gt;for the various time periods.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33983" class="jive-image-thumbnail jive-image" onclick="" alt="excelPivot.PNG" src="https://community.qlik.com/legacyfs/online/33983_excelPivot.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how to get this done? Or can you recommend different approach?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 13:37:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Pivot-to-QlikView/m-p/449048#M1156193</guid>
      <dc:creator />
      <dc:date>2013-02-27T13:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Excel Pivot to QlikView</title>
      <link>https://community.qlik.com/t5/QlikView/Excel-Pivot-to-QlikView/m-p/449049#M1156194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I've managed to get the look like I wanted for my pivot.&lt;/P&gt;&lt;P&gt;Inside the LOAD stmt I put:&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 _jivemacro_uid_13621342268332620" jivemacro_uid="_13621342268332620"&gt;&lt;P&gt;if (Num(Date([NetMaturity]))-Num(Date([CutoffDate])) &amp;gt;=0,'not due',if(Num(Date([NetMaturity]))-Num(Date([CutoffDate])) &amp;gt;=-30,'&amp;lt;=30d',&lt;/P&gt;&lt;P&gt;if(Num(Date([NetMaturity]))-Num(Date([CutoffDate]))&amp;gt;=-90,'30d&amp;gt;&amp;lt;=90d',if(Num(Date([NetMaturity]))-Num(Date([CutoffDate])) &amp;gt;=-180,'90d&amp;gt;&amp;lt;=180d','&amp;gt;180d')))) &lt;/P&gt;&lt;P&gt;AS myDueInfo&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I added the following expression(s) to my pivot:&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13621342268302256" jivemacro_uid="_13621342268302256"&gt;&lt;P&gt;if (myDueInfo LIKE '&amp;lt;=30d',sum(Amount) , 0)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13621342268296124" jivemacro_uid="_13621342268296124"&gt;&lt;P&gt;if (myDueInfo LIKE '30d&amp;gt;&amp;lt;=90d',sum(Amount) , 0)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but this only calculates the values when I click on the according value of "&lt;STRONG&gt;myDueInfo&lt;/STRONG&gt;". &lt;/P&gt;&lt;P&gt;However I'd like the calculation to work without any selection, so that I can get an overview for all time periods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to do for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 10:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Excel-Pivot-to-QlikView/m-p/449049#M1156194</guid>
      <dc:creator />
      <dc:date>2013-03-01T10:36:55Z</dc:date>
    </item>
  </channel>
</rss>

