<?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: Multiple IF(Match statements with a Count * XXXX in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Multiple-IF-Match-statements-with-a-Count-XXXX/m-p/1550919#M39713</link>
    <description>&lt;P&gt;I think I have resolved to doing the count in the load and just adding it as a dimension&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 07:03:58 GMT</pubDate>
    <dc:creator>rossybearr</dc:creator>
    <dc:date>2019-03-01T07:03:58Z</dc:date>
    <item>
      <title>Multiple IF(Match statements with a Count * XXXX</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-IF-Match-statements-with-a-Count-XXXX/m-p/1550563#M39675</link>
      <description>&lt;P&gt;So I'm new to this and have been working on a combo chart in which I have a list of Actuals and then I need a corresponding line that shows a theoretical number.&lt;/P&gt;&lt;P&gt;I have a custom dimension:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If( [Incidents: Classification] = 'Fatality (FAT)', 'FAT',&lt;/P&gt;&lt;P&gt;If(Match([Incidents: Classification], 'Lost Time Case (LTC)','Restricted Work Injury (RWI)'),'SA',&lt;/P&gt;&lt;P&gt;If(Match([Incidents: Classification],'Medical Treatment Case (MTC)','First Aid Case (FAC)'),'Ac',&lt;BR /&gt;&lt;BR /&gt;If(Match([Incidents: Classification],'Near Miss (NM)'),'In',&lt;BR /&gt;&lt;BR /&gt;If(Match([Incidents: Classification],'Unsafe Act (UAC)','Unsafe Condition (USC)'),'RS',NULL(),&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;)))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Actual measure is:&amp;nbsp;Count([Incidents: Accident ID])&lt;/P&gt;&lt;P&gt;My Theoretical Measure currently is looking like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If([Incidents: Classification] = 'Fatality (FAT)',Count([Incidents: Accident ID])*30000,&lt;/P&gt;&lt;P&gt;If(Match([Incidents: Classification],'Lost Time Case (LTC)','Restricted Work Injury (RWI)'),Count([Incidents: Accident ID])*1000,&lt;/P&gt;&lt;P&gt;If(Match([Incidents: Classification],'Medical Treatment Case (MTC)','First Aid Case (FAC)'),Count([Incidents: Accident ID])*100,&lt;/P&gt;&lt;P&gt;If(Match([Incidents: Classification],'Near Miss (NM)'),Count([Incidents: Accident ID])*10,&lt;/P&gt;&lt;P&gt;Count([Incidents: Accident ID]),&lt;/P&gt;&lt;P&gt;))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see from the below image, it does the standard count for RS and the * 10 for In but not the other categories.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="heinrichpyramid.png" style="width: 787px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7000i9434763CA3520F27/image-size/large?v=v2&amp;amp;px=999" role="button" title="heinrichpyramid.png" alt="heinrichpyramid.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-IF-Match-statements-with-a-Count-XXXX/m-p/1550563#M39675</guid>
      <dc:creator>rossybearr</dc:creator>
      <dc:date>2024-11-16T21:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF(Match statements with a Count * XXXX</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-IF-Match-statements-with-a-Count-XXXX/m-p/1550593#M39681</link>
      <description>&lt;P&gt;Can you give us some dummy data that will allow us to reproduce and replicate what's going on ?&amp;nbsp; The size of that If-statement is approaching unreadable, so I would have to work it in the actual editor to make sure things are "if"-ing out at the correct point.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 15:12:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-IF-Match-statements-with-a-Count-XXXX/m-p/1550593#M39681</guid>
      <dc:creator>JustinDallas</dc:creator>
      <dc:date>2019-02-28T15:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF(Match statements with a Count * XXXX</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-IF-Match-statements-with-a-Count-XXXX/m-p/1550797#M39703</link>
      <description>Maybe try an INLINE crosswalk&lt;BR /&gt;Weights:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;[Incident Classifiation],[Weight]&lt;BR /&gt;'Fatality (FAT)',30000&lt;BR /&gt;'Lost Time Case (LTC)',1000&lt;BR /&gt;'Restricted Work Injury (RWI)',1000&lt;BR /&gt;...&lt;BR /&gt;]&lt;BR /&gt;measure then:&lt;BR /&gt;Count([Incidents: Accident ID]) * Alt(Weight,1)</description>
      <pubDate>Thu, 28 Feb 2019 21:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-IF-Match-statements-with-a-Count-XXXX/m-p/1550797#M39703</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2019-02-28T21:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF(Match statements with a Count * XXXX</title>
      <link>https://community.qlik.com/t5/App-Development/Multiple-IF-Match-statements-with-a-Count-XXXX/m-p/1550919#M39713</link>
      <description>&lt;P&gt;I think I have resolved to doing the count in the load and just adding it as a dimension&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 07:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Multiple-IF-Match-statements-with-a-Count-XXXX/m-p/1550919#M39713</guid>
      <dc:creator>rossybearr</dc:creator>
      <dc:date>2019-03-01T07:03:58Z</dc:date>
    </item>
  </channel>
</rss>

