<?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: Line Chart Unfiltered Dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Line-Chart-Unfiltered-Dimension/m-p/763374#M10783</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's pretty hard to make specific suggestions without sight of your model and data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some general points to consider: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Be aware that QV appears not to optimise or shortcut expressions, so both legs of the if clause may be recalculated every time you make selections&lt;/LI&gt;&lt;LI&gt;Sum(If()) statements perform poorly on large data sets. Consider refactoring the expressions using set analysis (you would need a Year field for example)&lt;/LI&gt;&lt;LI&gt;If the model structure means that the fields in these expressions come from different tables, consider flattening your table structure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2015 13:09:14 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-01-26T13:09:14Z</dc:date>
    <item>
      <title>Line Chart Unfiltered Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-Unfiltered-Dimension/m-p/763371#M10780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to have a fixed x-axis (time) and I would like to show only the data that is selected in the graph but not change the x-axis. At the same time I want to be able to select a date on the axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is done by:&lt;/P&gt;&lt;P&gt;Sum({1}IF(Match(YEAR([ChartDateTime]), $(=GetFieldSelections([Jahr])) ),[PO value (custom)]))&lt;/P&gt;&lt;P&gt;and works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I also want to show all data if nothing is selected.&lt;/P&gt;&lt;P&gt;I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(GetSelectedCount([Jahr])&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({1}IF(Match(YEAR([ChartDateTime]), $(=GetFieldSelections([Jahr])) ),[PO value (custom)])),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({1}[PO value (custom)])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for some reason it doesn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 09:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-Unfiltered-Dimension/m-p/763371#M10780</guid>
      <dc:creator />
      <dc:date>2015-01-26T09:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart Unfiltered Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-Unfiltered-Dimension/m-p/763372#M10781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GetFieldSelections returns null if nothing is selected, the $(=...) returns an empty string, so you have a syntax error. The expression works if something is selected, because then there is no syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(GetSelectedCount([Jahr])&amp;gt;0,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({1}IF(Index(YEAR([ChartDateTime]), '$(=Concat(DISTINCT ([Jahr])))'), [PO value (custom)])),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({1}[PO value (custom)])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 09:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-Unfiltered-Dimension/m-p/763372#M10781</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-01-26T09:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart Unfiltered Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-Unfiltered-Dimension/m-p/763373#M10782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Jonathan!&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Do you know if there might be a way to improve the performance of this task?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 10:06:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-Unfiltered-Dimension/m-p/763373#M10782</guid>
      <dc:creator />
      <dc:date>2015-01-26T10:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart Unfiltered Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Line-Chart-Unfiltered-Dimension/m-p/763374#M10783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's pretty hard to make specific suggestions without sight of your model and data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some general points to consider: &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Be aware that QV appears not to optimise or shortcut expressions, so both legs of the if clause may be recalculated every time you make selections&lt;/LI&gt;&lt;LI&gt;Sum(If()) statements perform poorly on large data sets. Consider refactoring the expressions using set analysis (you would need a Year field for example)&lt;/LI&gt;&lt;LI&gt;If the model structure means that the fields in these expressions come from different tables, consider flattening your table structure&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2015 13:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Line-Chart-Unfiltered-Dimension/m-p/763374#M10783</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-01-26T13:09:14Z</dc:date>
    </item>
  </channel>
</rss>

