<?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: Above function group by dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Above-function-group-by-dimension/m-p/533114#M479766</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Veena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, you need to order your table by Other Dimensions and&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;And also, use the peek() or previous() functions, sth like:&lt;/P&gt;&lt;P&gt;if (NOT isnull(Price), Sales, if(previous(Customer)=Customer AND previous(Product)=product, peek('Price')) ) as 'Price',&lt;/P&gt;&lt;P&gt;[...]&lt;BR /&gt;FROM [...]&lt;/P&gt;&lt;P&gt;ORDER BY Customer, Product, Date;&lt;/P&gt;&lt;P&gt;Here, I want to fetch the previous Price only if the Price is null AND&amp;nbsp; if it is the same Customer and the same Client as the previous one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jan 2014 22:07:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-01-19T22:07:31Z</dc:date>
    <item>
      <title>Above function group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-group-by-dimension/m-p/533113#M479765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement of replacing nulls with previous value which I am able to achieve by above function.&lt;/P&gt;&lt;P&gt;Is there any option to limit it only to date dimension and group by on other dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;Veena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 17:27:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-group-by-dimension/m-p/533113#M479765</guid>
      <dc:creator />
      <dc:date>2014-01-19T17:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Above function group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-group-by-dimension/m-p/533114#M479766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Veena,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, you need to order your table by Other Dimensions and&amp;nbsp; Date&lt;/P&gt;&lt;P&gt;And also, use the peek() or previous() functions, sth like:&lt;/P&gt;&lt;P&gt;if (NOT isnull(Price), Sales, if(previous(Customer)=Customer AND previous(Product)=product, peek('Price')) ) as 'Price',&lt;/P&gt;&lt;P&gt;[...]&lt;BR /&gt;FROM [...]&lt;/P&gt;&lt;P&gt;ORDER BY Customer, Product, Date;&lt;/P&gt;&lt;P&gt;Here, I want to fetch the previous Price only if the Price is null AND&amp;nbsp; if it is the same Customer and the same Client as the previous one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jan 2014 22:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-group-by-dimension/m-p/533114#M479766</guid>
      <dc:creator />
      <dc:date>2014-01-19T22:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Above function group by dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Above-function-group-by-dimension/m-p/533115#M479767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabrice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that peek function will help in this but it is a static value. We are having a cumulative measure and when displayed over multiple dimension in pivot table results in null values. So we are looking for a dynamic function with which we can achieve the same in expression. Above function is working fine.&lt;/P&gt;&lt;P&gt;[Actual Sale]=&lt;STRONG&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;ISNULL&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;Above&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[Actual Sale]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;),1),MAX( Sales))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;But I need it group by other dimensions like region. One product sale value should not be carry forward to next region. Is there any way to achieve this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;Thanks in Advance&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: black; font-size: 9pt; font-family: 'Courier New';"&gt;Veena&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2014 04:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Above-function-group-by-dimension/m-p/533115#M479767</guid>
      <dc:creator />
      <dc:date>2014-01-20T04:12:59Z</dc:date>
    </item>
  </channel>
</rss>

