<?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: Bar chart dimension not using year how to make it using year ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069072#M640022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see , yes this is the approach to solution the complicate expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Me too I usually break the complicated formula into part by part and try to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see you are very fast learner , no wonder I never see you last time , when I started I know quite a number QV expert like john w... Robert , micheal etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Feb 2016 01:59:05 GMT</pubDate>
    <dc:creator>paulyeo11</dc:creator>
    <dc:date>2016-02-20T01:59:05Z</dc:date>
    <item>
      <title>Bar chart dimension not using year how to make it using year ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069065#M640015</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;&lt;/P&gt;&lt;P&gt;Right now my chart i make use of 2 expression to plot the CY &amp;amp; LY bar , with out using year at Diamension :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st expression for LY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(If(sum(DISTINCT STK_CLOSE) &amp;gt; 0 and sum(DISTINCT STK_OPEN) &amp;gt; 0,&lt;/P&gt;&lt;P&gt;RangeAvg(Only({&amp;lt;year = {$(=max(year)-1)}&amp;gt;}Aggr(Sum({&amp;lt;month, year&amp;gt;}TOTAL &amp;lt;year&amp;gt; If([YearMonth] = YearStart([YearMonth]), STK_OPEN)), [YearMonth], year)),&lt;/P&gt;&lt;P&gt;sum({&amp;lt;month, year, YearMonth = {"$(=Dual(Date(YearEnd(AddYears(Monthstart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth)), -1)), 'YY MMM'), MonthStart(YearEnd(AddYears(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth), -1)))))"}&amp;gt;} DISTINCT STK_CLOSE)))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;If(sum(DISTINCT STK_CLOSE) &amp;gt; 0 and sum(DISTINCT STK_OPEN) &amp;gt; 0, RangeSum(Above(Sum({$&amp;lt;year = {$(=max(year)-1)}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} DISTINCT (COGS+COGS_INT_)/1), 0, RowNo())))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;*month*30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd expression for CY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(sum(DISTINCT STK_CLOSE) &amp;gt; 0 and sum(DISTINCT STK_OPEN) &amp;gt; 0,&lt;/P&gt;&lt;P&gt;RangeAvg(Aggr(Sum({&amp;lt;month&amp;gt;}DISTINCT TOTAL &amp;lt;year&amp;gt; If([YearMonth] = YearStart([YearMonth]), STK_OPEN)), [YearMonth], year),&lt;/P&gt;&lt;P&gt;sum({&amp;lt;month, YearMonth = {"$(=Dual(Date(Monthstart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth)), 'YY MMM'), MonthStart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth))))"}&amp;gt;}DISTINCT STK_CLOSE))/&lt;/P&gt;&lt;P&gt;RangeSum(Above(Sum({$&amp;lt;year = {$(=max(year))}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} DISTINCT (COGS+COGS_INT_)/1), 0, RowNo())))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;month*30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know how to combine the above 2 expression into 1 , so that Diamension i can use year to plot the bar chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 09:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069065#M640015</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-19T09:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart dimension not using year how to make it using year ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069066#M640016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My QV Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 09:10:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069066#M640016</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-19T09:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart dimension not using year how to make it using year ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069067#M640017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=(RangeAvg(Only({&amp;lt;year = {$(=max(year)-1), $(=max(year))}&amp;gt;}Aggr(Sum({&amp;lt;month, year&amp;gt;}TOTAL &amp;lt;year&amp;gt; If([YearMonth] = YearStart([YearMonth]), STK_OPEN)), [YearMonth], year)),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({&amp;lt;month, year, YearMonth = {"$(=Dual(Date(YearEnd(AddYears(Monthstart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth)), -1)), 'YY MMM'), MonthStart(YearEnd(AddYears(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth), -1)))))"}&amp;gt;+&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;lt;month, year, YearMonth = {"$(=Dual(Date(Monthstart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth)), 'YY MMM'), MonthStart(Max({&amp;lt;STK_CLOSE = {'*?'}&amp;gt;}YearMonth))))"}&amp;gt;} DISTINCT STK_CLOSE))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;year = {$(=max(year)-1), $(=max(year))}, month = {"&amp;lt;=$(=max({&amp;lt;year={$(=max(year))}&amp;gt;} month))"}&amp;gt;} DISTINCT (COGS+COGS_INT_)/1))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*Only(TOTAL month)*30&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 09:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069067#M640017</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-19T09:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart dimension not using year how to make it using year ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069068#M640018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow !!!&amp;nbsp; That is some data model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggested looking at streamlining the data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 09:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069068#M640018</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T09:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart dimension not using year how to make it using year ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069069#M640019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your effort in try to help to try to solve the problem , but the result was wrong ..... wait let me check again ... Edited ( As yesterday your expression is not work when you reply me ) . To my surprise your expression was working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i must said that your mind is very powerful. i cannot even imagine this is possible to solve. Many thank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 00:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069069#M640019</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-20T00:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart dimension not using year how to make it using year ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069070#M640020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Hi sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I know how Long you take to come out the very complicated expression ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I am still struggle to understand how you make it , in order for me to apply to my other chart .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAy I know your QV experience in QV ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 01:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069070#M640020</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-20T01:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart dimension not using year how to make it using year ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069071#M640021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes a while to understand the data model, but I usually have an idea of what could be a potential solution. From there onwards its a mixture of breaking the expression down into small piece and doing some trial and error. I have little under 1 and half year experience in QV.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 01:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069071#M640021</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-02-20T01:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Bar chart dimension not using year how to make it using year ?</title>
      <link>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069072#M640022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see , yes this is the approach to solution the complicate expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Me too I usually break the complicated formula into part by part and try to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see you are very fast learner , no wonder I never see you last time , when I started I know quite a number QV expert like john w... Robert , micheal etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Feb 2016 01:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Bar-chart-dimension-not-using-year-how-to-make-it-using-year/m-p/1069072#M640022</guid>
      <dc:creator>paulyeo11</dc:creator>
      <dc:date>2016-02-20T01:59:05Z</dc:date>
    </item>
  </channel>
</rss>

