<?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: calculated dimension. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788467#M665381</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aaron.. Issue resolved &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2015 11:52:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-14T11:52:35Z</dc:date>
    <item>
      <title>calculated dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788462#M665376</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;we have created a straight table with one dimension called month and 8 expressions.&lt;/P&gt;&lt;P&gt;requirement was to display only one month in the table.&lt;/P&gt;&lt;P&gt;so we selected Max Number (1-100) to 1 in the presentation tab. by default it displays only Jan when no selection is made on month. when clicked on different months it changes accordingly.&lt;/P&gt;&lt;P&gt;but the user wants to see the previous month values by default.. which should be December when i see in January.&lt;/P&gt;&lt;P&gt;so i tried modifying the dimension with the help of calculated dimension. its not giving expected results when no selection is made on month.&lt;/P&gt;&lt;P&gt;below is the calculated dimension.&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Month)=0,Month(AddMonths(MonthStart(Today()),-1))),Month)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help. any suggestions appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jyothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 09:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788462#M665376</guid>
      <dc:creator />
      <dc:date>2015-01-14T09:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788463#M665377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post some sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 09:30:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788463#M665377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-14T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788464#M665378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That expression seems to work for me fine, the only difference I can see is you have an extra bracket after the Today()), -1))) statement - there should only be two brackets needed at the end, not 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that's just a typo, maybe worth posting an example!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 09:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788464#M665378</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-01-14T09:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788465#M665379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron.. sorry that was a typo.. i Have attached a sample.. please check..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 10:09:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788465#M665379</guid>
      <dc:creator />
      <dc:date>2015-01-14T10:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788466#M665380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you want a calculated dimension here - instead try using set analysis on your expression(s), like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;)=0, &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"$(=Month(AddMonths(MonthStart(Today()),-1)))"&lt;/SPAN&gt;}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;), &lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I've attached your example here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Aaron&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 10:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788466#M665380</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2015-01-14T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: calculated dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788467#M665381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aaron.. Issue resolved &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 11:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/calculated-dimension/m-p/788467#M665381</guid>
      <dc:creator />
      <dc:date>2015-01-14T11:52:35Z</dc:date>
    </item>
  </channel>
</rss>

