<?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: Calculating % of Patients Not Seen by Date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-of-Patients-Not-Seen-by-Date/m-p/2661533#M78935</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="415214" data-lia-user-login="rmcmullenNSHOA" class="lia-mention lia-mention-user"&gt;rmcmullenNSHOA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please share the excel file with the above?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" style="--darkreader-inline-color: #c72825;" color="#FF0000" data-darkreader-inline-color=""&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT style="--darkreader-inline-color: #c72825;" color="#FF0000" data-darkreader-inline-color=""&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" style="--darkreader-inline-color: #c72825;" color="#FF0000" data-darkreader-inline-color=""&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jul 2022 09:56:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-07-26T09:56:33Z</dc:date>
    <item>
      <title>Calculating % of Patients Not Seen by Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-of-Patients-Not-Seen-by-Date/m-p/2651501#M78191</link>
      <description>&lt;P&gt;I'm trying to create a report that shows, for a given range of dates (e.g., 5/18/22 - 7/19/22), how many patients were in a hospital and able to be seen, how many were seen, and how many were not seen. Finally, I want to add a column showing the % that were not seen. The final result should be broken out by each distinct date in the range.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simple enough to calculate - the struggle is getting the data in a place to get me there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've shared a sample data source file &lt;A href="https://we.tl/t-s92fewJom0" target="_blank" rel="noopener"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far, I've created a calendar table based on the minimum Admit date and the maximum Discharge date and created a relationship to the dDateTime field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also created a "Patient Count" measure &lt;SPAN&gt;Patient Count = &lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;VisitData[sPatientNumber]&lt;/SPAN&gt;&lt;SPAN&gt;), but that's as far as I've gotten.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help would be greatly appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 22:31:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-of-Patients-Not-Seen-by-Date/m-p/2651501#M78191</guid>
      <dc:creator>rmcmullenNSHOA</dc:creator>
      <dc:date>2022-07-20T22:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating % of Patients Not Seen by Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-of-Patients-Not-Seen-by-Date/m-p/2651824#M78205</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="415214" data-lia-user-login="rmcmullenNSHOA" class="lia-mention lia-mention-user"&gt;rmcmullenNSHOA&lt;/a&gt; , Not seen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;countx(values(VisitData[sPatientNumber]), if(isblank([Patient Count]),[sPatientNumber], blank() ) )&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 03:58:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-of-Patients-Not-Seen-by-Date/m-p/2651824#M78205</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-21T03:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating % of Patients Not Seen by Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-of-Patients-Not-Seen-by-Date/m-p/2654083#M78340</link>
      <description>&lt;P&gt;So I ended up solving this in excel for now. Here's how I did it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;New tab, cell A1 = UNIQUE(Table1[sLastName]:[Discharge]). This gives me all the distinct stays by patient (i.e., if I was admitted/discharged multiple times during the period, they will show up separately).&lt;/LI&gt;&lt;LI&gt;Calculate the Length of Stay for each row = [Discharge] - [Admit] + 1&lt;/LI&gt;&lt;LI&gt;Calculate the number of times the patient was seen&lt;BR /&gt;= COUNTIFS(Table1[sPatientNumber],B2,Table1[Admit], C2)&lt;/LI&gt;&lt;LI&gt;Calculate the number of times the patient was not seen (i.e., Unseen)&lt;BR /&gt;= Length of Stay - Seen (from above)&lt;/LI&gt;&lt;LI&gt;Calculate the Unseen %&lt;BR /&gt;= Unseen / Length of Stay&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd love to figure out how to do this in PowerBI and create a report that I could share with others on my team.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 18:54:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-of-Patients-Not-Seen-by-Date/m-p/2654083#M78340</guid>
      <dc:creator>rmcmullenNSHOA</dc:creator>
      <dc:date>2022-07-21T18:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating % of Patients Not Seen by Date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-of-Patients-Not-Seen-by-Date/m-p/2661533#M78935</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="415214" data-lia-user-login="rmcmullenNSHOA" class="lia-mention lia-mention-user"&gt;rmcmullenNSHOA&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would you please share the excel file with the above?&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;BR /&gt;Gao&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;If there is any post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3" style="--darkreader-inline-color: #c72825;" color="#FF0000" data-darkreader-inline-color=""&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT size="3"&gt;&lt;FONT style="--darkreader-inline-color: #c72825;" color="#FF0000" data-darkreader-inline-color=""&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Thanks a lot!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2" style="--darkreader-inline-color: #c72825;" color="#FF0000" data-darkreader-inline-color=""&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to get your questions answered quickly&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;--&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;How to provide sample data&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 09:56:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-of-Patients-Not-Seen-by-Date/m-p/2661533#M78935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-26T09:56:33Z</dc:date>
    </item>
  </channel>
</rss>

