<?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 Is it possible to write a formula that would check if an assessment happens every N days? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-write-a-formula-that-would-check-if-an/m-p/2498671#M102912</link>
    <description>&lt;P&gt;We have a request for a compliance dashboard, and one thing they are looking for is if the BPRS assessment is completed every 7 days through a episode of care for a patient.&lt;/P&gt;
&lt;P&gt;I only have access to qlik expressions in charts, cannot script anything.&lt;/P&gt;
&lt;P&gt;What I've tried, as a proof of concept, is getting the maximum date interval between assessment dates, by Patid and episode:&lt;/P&gt;
&lt;P&gt;Max(&lt;BR /&gt;Aggr(&lt;BR /&gt;Interval(&lt;BR /&gt;[Brief Psychiatric Rating Scale Version 4.0.Data Entry Date], &lt;BR /&gt;Previous([Brief Psychiatric Rating Scale Version 4.0.Data Entry Date]), &lt;BR /&gt;'d'&lt;BR /&gt;),&lt;BR /&gt;[Episode ID]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;I tried putting this into a straight table, with the only columns being dimensions for the patient name and episode number (Episode ID is a unique identifier that combines both fields). This formula gives me a null result. I'm not sure there is a way to do this, and I don't even know if that "Previous" is the right function for this.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 18 Dec 2024 21:02:22 GMT</pubDate>
    <dc:creator>mjirges</dc:creator>
    <dc:date>2024-12-18T21:02:22Z</dc:date>
    <item>
      <title>Is it possible to write a formula that would check if an assessment happens every N days?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-write-a-formula-that-would-check-if-an/m-p/2498671#M102912</link>
      <description>&lt;P&gt;We have a request for a compliance dashboard, and one thing they are looking for is if the BPRS assessment is completed every 7 days through a episode of care for a patient.&lt;/P&gt;
&lt;P&gt;I only have access to qlik expressions in charts, cannot script anything.&lt;/P&gt;
&lt;P&gt;What I've tried, as a proof of concept, is getting the maximum date interval between assessment dates, by Patid and episode:&lt;/P&gt;
&lt;P&gt;Max(&lt;BR /&gt;Aggr(&lt;BR /&gt;Interval(&lt;BR /&gt;[Brief Psychiatric Rating Scale Version 4.0.Data Entry Date], &lt;BR /&gt;Previous([Brief Psychiatric Rating Scale Version 4.0.Data Entry Date]), &lt;BR /&gt;'d'&lt;BR /&gt;),&lt;BR /&gt;[Episode ID]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;I tried putting this into a straight table, with the only columns being dimensions for the patient name and episode number (Episode ID is a unique identifier that combines both fields). This formula gives me a null result. I'm not sure there is a way to do this, and I don't even know if that "Previous" is the right function for this.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 21:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-possible-to-write-a-formula-that-would-check-if-an/m-p/2498671#M102912</guid>
      <dc:creator>mjirges</dc:creator>
      <dc:date>2024-12-18T21:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to write a formula that would check if an assessment happens every N days?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-it-possible-to-write-a-formula-that-would-check-if-an/m-p/2498673#M102913</link>
      <description>&lt;P&gt;Here is a formula that I tried that gets me the difference between each record, but I was needing a "Yes" or "No" on the patient, if they were compliant, thus the need for the max &amp;lt;= 7 days.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If(&lt;BR /&gt;[Episode ID] &amp;lt;&amp;gt; Above(TOTAL[Episode ID]), &lt;BR /&gt;Interval([Brief Psychiatric Rating Scale Version 4.0.Data Entry Date] - [Client Admission.Begin Date], 'DD'),&lt;BR /&gt;Interval([Brief Psychiatric Rating Scale Version 4.0.Data Entry Date] - Above(TOTAL [Brief Psychiatric Rating Scale Version 4.0.Data Entry Date]), 'DD'))&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 21:19:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-it-possible-to-write-a-formula-that-would-check-if-an/m-p/2498673#M102913</guid>
      <dc:creator>mjirges</dc:creator>
      <dc:date>2024-12-18T21:19:58Z</dc:date>
    </item>
  </channel>
</rss>

