<?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 Set Analysis in Load Script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Load-Script/m-p/1653756#M48845</link>
    <description>&lt;P&gt;There are many different types of patient visits that our healthcare organization has, but they are not defined within our source system. Therefore, within my layer 2 I created flags to use within set analysis to perform a count on these types. However, we want to also be able to define these types so they can be utilized in a filter like a standard dimension.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, how do I take these two formulas and make it a field name of Visit Type with potential values of Work Comp or Urgent Care Visit?&lt;/P&gt;&lt;P&gt;Work Comp expression:&amp;nbsp;Count({&amp;lt;WCFlag={1},ESPFlag={0}&amp;gt; + &amp;lt;OccMedFacilityFlag={1},ESPFlag={0}&amp;gt;}distinct EncounterID)&lt;/P&gt;&lt;P&gt;Urgent Care Visit expression:&amp;nbsp;Count({&amp;lt;WCFlag={0}, ESPFlag={0}, IEFlag = {1}&amp;gt;}distinct(EncounterID))&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:56:13 GMT</pubDate>
    <dc:creator>brandon_d</dc:creator>
    <dc:date>2024-11-16T03:56:13Z</dc:date>
    <item>
      <title>Set Analysis in Load Script</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Load-Script/m-p/1653756#M48845</link>
      <description>&lt;P&gt;There are many different types of patient visits that our healthcare organization has, but they are not defined within our source system. Therefore, within my layer 2 I created flags to use within set analysis to perform a count on these types. However, we want to also be able to define these types so they can be utilized in a filter like a standard dimension.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In short, how do I take these two formulas and make it a field name of Visit Type with potential values of Work Comp or Urgent Care Visit?&lt;/P&gt;&lt;P&gt;Work Comp expression:&amp;nbsp;Count({&amp;lt;WCFlag={1},ESPFlag={0}&amp;gt; + &amp;lt;OccMedFacilityFlag={1},ESPFlag={0}&amp;gt;}distinct EncounterID)&lt;/P&gt;&lt;P&gt;Urgent Care Visit expression:&amp;nbsp;Count({&amp;lt;WCFlag={0}, ESPFlag={0}, IEFlag = {1}&amp;gt;}distinct(EncounterID))&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:56:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Load-Script/m-p/1653756#M48845</guid>
      <dc:creator>brandon_d</dc:creator>
      <dc:date>2024-11-16T03:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis in Load Script</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Load-Script/m-p/1653762#M48846</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;you can use if for that:&lt;/P&gt;&lt;P&gt;if(&lt;SPAN&gt;WCFlag = '1' and&amp;nbsp;ESPFlag = '0' and&amp;nbsp;IEFlag&amp;nbsp; = '1' , 'Urgent Care Visit'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;if(........................................., '&lt;SPAN&gt;Work Comp&amp;nbsp;&lt;/SPAN&gt;', null())) as [Visit Type]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 19:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-in-Load-Script/m-p/1653762#M48846</guid>
      <dc:creator>y_grynechko</dc:creator>
      <dc:date>2019-12-03T19:58:00Z</dc:date>
    </item>
  </channel>
</rss>

