<?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 Creating P&amp;L and Balance Sheet Reports using MDX in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-P-L-and-Balance-Sheet-Reports-using-MDX/m-p/441163#M697716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QV community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working a project where I need to build P&amp;amp;L/BS reports in QV. I need to achieve this through MDX. I was able to successfully load information into pivot/straight tables. But as you know pivot does not work for this type of reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our hierarchies spans across different levels, therefore I am forced to create a mapping table that will help QV identify &amp;amp; group accounts into specific categories.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with running 'intervalmatch' statement by combining QV syntax with MDX . My query simply fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions or experience with building hierarchies using MDX &amp;amp; QV? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions on how to go about this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLTemp:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; { null } on 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ([Account].[H1].[LEV14])on 1&lt;/P&gt;&lt;P&gt;FROM [Finance];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{ null } on 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;([Account].[H1].[LEV14]) on 1&lt;/P&gt;&lt;P&gt;FROM [Finance];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatchTemp:&lt;/P&gt;&lt;P&gt;INTERVALMATCH ("[Account].[H1].[LEV14]") LOAD [GL Account Start], [GL Account End] RESIDENT Layout;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;distinct &lt;/P&gt;&lt;P&gt;("[Account].[H1].[LEV14]"),&lt;/P&gt;&lt;P&gt;[GL Account Start] &amp;amp; '|' &amp;amp; [GL Account End] as GLStartEnd&lt;/P&gt;&lt;P&gt;resident&lt;/P&gt;&lt;P&gt;IntervalMatchTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table IntervalMatchTemp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Jan 2013 22:26:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-21T22:26:47Z</dc:date>
    <item>
      <title>Creating P&amp;L and Balance Sheet Reports using MDX</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-P-L-and-Balance-Sheet-Reports-using-MDX/m-p/441163#M697716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi QV community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working a project where I need to build P&amp;amp;L/BS reports in QV. I need to achieve this through MDX. I was able to successfully load information into pivot/straight tables. But as you know pivot does not work for this type of reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our hierarchies spans across different levels, therefore I am forced to create a mapping table that will help QV identify &amp;amp; group accounts into specific categories.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am struggling with running 'intervalmatch' statement by combining QV syntax with MDX . My query simply fails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions or experience with building hierarchies using MDX &amp;amp; QV? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions on how to go about this? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLTemp:&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; { null } on 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ([Account].[H1].[LEV14])on 1&lt;/P&gt;&lt;P&gt;FROM [Finance];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{ null } on 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;([Account].[H1].[LEV14]) on 1&lt;/P&gt;&lt;P&gt;FROM [Finance];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatchTemp:&lt;/P&gt;&lt;P&gt;INTERVALMATCH ("[Account].[H1].[LEV14]") LOAD [GL Account Start], [GL Account End] RESIDENT Layout;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatch:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;distinct &lt;/P&gt;&lt;P&gt;("[Account].[H1].[LEV14]"),&lt;/P&gt;&lt;P&gt;[GL Account Start] &amp;amp; '|' &amp;amp; [GL Account End] as GLStartEnd&lt;/P&gt;&lt;P&gt;resident&lt;/P&gt;&lt;P&gt;IntervalMatchTemp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table IntervalMatchTemp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jan 2013 22:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-P-L-and-Balance-Sheet-Reports-using-MDX/m-p/441163#M697716</guid>
      <dc:creator />
      <dc:date>2013-01-21T22:26:47Z</dc:date>
    </item>
  </channel>
</rss>

