<?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: Dimension not always valued causes gaps in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91128#M6086</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still would work, just need to add another column that increments visit day for that patient key, e.g. Pat ID + Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2018 17:48:17 GMT</pubDate>
    <dc:creator>dwforest</dc:creator>
    <dc:date>2018-08-01T17:48:17Z</dc:date>
    <item>
      <title>Dimension not always valued causes gaps</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91125#M6083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I'm new to Qlik Sense and have a general question related to using a dimension that may not always be represented causing gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load script&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In my load script there are two events that have a visit day assigned to indicate which day of the hospital stay this event occurred on. In some cases, a visit day may not have either of these events.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;[Med Task Performed Dtm] - [%MedsEncounterAdmissionDate])+1 &amp;gt; 0,&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;[Med Task Performed Dtm] - [%MedsEncounterAdmissionDate])+1&lt;/P&gt;&lt;P&gt;) as "MedTaskPerformedVisitDay"&amp;nbsp; // returns a number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Px Coded Seq] = '1',&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;([Px Date] - [%PX_EncounterAdmissionDate])+1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;) as "PrincipalPxVisitDay" // returns a number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Table dimension&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Using a dimension like this plots a measure by the visit day a med was given. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;='Visit Day '&amp;amp;MedTaskPerformedVisitDay&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I highlighted the visit day background by using this but of course if no meds were given on the particular visit day that matches the procedure's visit day, this method fails.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If(MedTaskPerformedVisitDay=PrincipalPxVisitDay,&lt;/P&gt;&lt;P&gt;red()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I"m pretty sure I need to approach this differently, perhaps with a table containing all the possible visit days (something similar to the master calendar) and then join these visit day fields to this table? I'm just getting started so I'm not sure if I'm thinking about this correctly or if there is a better way to do this type of thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for any guidance, much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 22:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91125#M6083</guid>
      <dc:creator>phildetwei</dc:creator>
      <dc:date>2018-07-31T22:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension not always valued causes gaps</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91126#M6084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would say, yes, the "easiest" way is to use a Master Calendar to ensure each date is represented and have the formula return 0, where appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3585"&gt;Canonical Date&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 23:56:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91126#M6084</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-07-31T23:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension not always valued causes gaps</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91127#M6085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/204428"&gt;dwforest&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case though these are not dates but numeric values, as in visit day 1, visit day 2, etc. The actual dates used in the formula to determine the visit day could be from very different periods based on the admission/discharge dates. For example, an event occurring Jan 13 and Feb 25 would both be considered visit day 3 on a case admitted Jan 11 and Feb 23 respectively.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 00:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91127#M6085</guid>
      <dc:creator>phildetwei</dc:creator>
      <dc:date>2018-08-01T00:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension not always valued causes gaps</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91128#M6086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still would work, just need to add another column that increments visit day for that patient key, e.g. Pat ID + Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 17:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91128#M6086</guid>
      <dc:creator>dwforest</dc:creator>
      <dc:date>2018-08-01T17:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension not always valued causes gaps</title>
      <link>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91129#M6087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay thanks. I read through the link you referenced and while I sense it is very well explained, I think I lack some background needed to fully grasp what is being suggested. At this early stage though, it is very helpful to know whether the tree I'm barking up is the right one &lt;STRONG&gt;&lt;EM&gt;before&lt;/EM&gt;&lt;/STRONG&gt; using up too many cycles so I thank you for that direction. I think I need to do a bit more homework on some basics before I attempt this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 19:47:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Dimension-not-always-valued-causes-gaps/m-p/91129#M6087</guid>
      <dc:creator>phildetwei</dc:creator>
      <dc:date>2018-08-01T19:47:40Z</dc:date>
    </item>
  </channel>
</rss>

