<?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 IFs in dimensions in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/IFs-in-dimensions/m-p/110608#M7578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with if statements in dimensions. I would like to switch between actual numbers from the last 12 months and rolling 12 months figures. If statements work with KPIs and gauges, they don't work with charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working graphs look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="graph1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213093_graph1.jpg" style="height: 183px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I combine them to same line chart and use filter pane to change the dimension, the result is unwanted:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="graph2.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/213096_graph2.jpg" style="height: auto;" /&gt;&lt;IMG alt="graph3.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/213094_graph3.jpg" style="font-size: 13.3333px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension-if is: =if(vR12='1', CumulativeMonth, VoucherYearMonth) and if in measure is: &lt;/P&gt;&lt;P&gt;if(vR12='1',&amp;nbsp; $(vSales), &lt;SPAN style="font-size: 13.3333px;"&gt;$(vSales12))&lt;/SPAN&gt;. I assume the problem is CumulativeMonth-dimension, as it looks 24 months behind. But is there any workaround to solve this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2018 08:32:56 GMT</pubDate>
    <dc:creator>kruel830</dc:creator>
    <dc:date>2018-09-10T08:32:56Z</dc:date>
    <item>
      <title>IFs in dimensions</title>
      <link>https://community.qlik.com/t5/App-Development/IFs-in-dimensions/m-p/110608#M7578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with if statements in dimensions. I would like to switch between actual numbers from the last 12 months and rolling 12 months figures. If statements work with KPIs and gauges, they don't work with charts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Working graphs look like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="graph1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/213093_graph1.jpg" style="height: 183px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I combine them to same line chart and use filter pane to change the dimension, the result is unwanted:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="graph2.jpg" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/213096_graph2.jpg" style="height: auto;" /&gt;&lt;IMG alt="graph3.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/213094_graph3.jpg" style="font-size: 13.3333px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dimension-if is: =if(vR12='1', CumulativeMonth, VoucherYearMonth) and if in measure is: &lt;/P&gt;&lt;P&gt;if(vR12='1',&amp;nbsp; $(vSales), &lt;SPAN style="font-size: 13.3333px;"&gt;$(vSales12))&lt;/SPAN&gt;. I assume the problem is CumulativeMonth-dimension, as it looks 24 months behind. But is there any workaround to solve this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 08:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/IFs-in-dimensions/m-p/110608#M7578</guid>
      <dc:creator>kruel830</dc:creator>
      <dc:date>2018-09-10T08:32:56Z</dc:date>
    </item>
  </channel>
</rss>

