<?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: Expression working on a chart until I sort the dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465612#M558173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it might be the issue that u have the expression named as the variable in the script, i mean "MonthlyTarget". Try to change the label of expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Jun 2013 12:41:12 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-12T12:41:12Z</dc:date>
    <item>
      <title>Expression working on a chart until I sort the dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465607#M558168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the following expression:&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_13710367732604083" jivemacro_uid="_13710367732604083"&gt;&lt;P&gt;max({1&amp;lt;Year={$(#=vCurrentYear)}, MonthNumber={$(#=vCurrentMonth)}&amp;gt;} MonthlyTarget) // Monthly target&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;TimeIsland.Year={$(#=vCurrentYear)}, TimeIsland.MonthNumber={$(#=vCurrentMonth)}, TimeIsland.DayNumber={"&amp;lt;=$(#=vCurrentDay)"}&amp;gt;}TimeIsland.IsShopDay_Int) // Days in month so far&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;TimeIsland.Year={$(#=vCurrentYear)}, TimeIsland.MonthNumber={$(#=vCurrentMonth)}&amp;gt;}TimeIsland.IsShopDay_Int) // Days in month&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gets the monthly target for the user, and multiplys it by the number of shop days we've had in the month, divided by the total shop days in the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works nicely providing I don't sort by my User dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I sort by text A-Z by the user dimension it doesn't show that bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've norrowed it down to the Days in month so far and Days in month parts not getting calculated correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone encountered anything like this before? It seems very odd to me that sorting a dimension effects the result.&lt;/P&gt;&lt;P&gt;I'm very new to QlikView so I'm probbaly missing something about how QlikView expressions work within charts etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 11:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465607#M558168</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-12T11:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Expression working on a chart until I sort the dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465608#M558169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u show the qvw file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 11:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465608#M558169</guid>
      <dc:creator />
      <dc:date>2013-06-12T11:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression working on a chart until I sort the dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465609#M558170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could I upload it without data? How do I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 11:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465609#M558170</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-12T11:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression working on a chart until I sort the dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465610#M558171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open qlikview desktop with a Start page. Choose recently opened documents and with the right click "open without data".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 12:03:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465610#M558171</guid>
      <dc:creator />
      <dc:date>2013-06-12T12:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: Expression working on a chart until I sort the dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465611#M558172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 12:09:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465611#M558172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-12T12:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Expression working on a chart until I sort the dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465612#M558173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it might be the issue that u have the expression named as the variable in the script, i mean "MonthlyTarget". Try to change the label of expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jun 2013 12:41:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-working-on-a-chart-until-I-sort-the-dimension/m-p/465612#M558173</guid>
      <dc:creator />
      <dc:date>2013-06-12T12:41:12Z</dc:date>
    </item>
  </channel>
</rss>

