<?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: A matter with DAX functions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238216#M20249</link>
    <description>I'm not sure I understand the question - if you are using cases from the database, then this needs fixed in database. Do you have a DAX measure that calculates "total patients (end of month)" ? If so, please post it here and we can help you update it. If not, please provide name of table and columns and/or measures that you have available in the data model to use for this.</description>
    <pubDate>Tue, 21 Jul 2020 11:11:00 GMT</pubDate>
    <dc:creator>AllisonKennedy</dc:creator>
    <dc:date>2020-07-21T11:11:00Z</dc:date>
    <item>
      <title>A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238003#M20246</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I face a specific problem. As you can see the "&lt;STRONG&gt;total patients (start of month)&lt;/STRONG&gt;" are &lt;STRONG&gt;1910&lt;/STRONG&gt;. Add to those the "&lt;STRONG&gt;new patients in program&lt;/STRONG&gt;", who are &lt;STRONG&gt;48&lt;/STRONG&gt;, and then the "&lt;STRONG&gt;total patients (end of month)&lt;/STRONG&gt;" are &lt;STRONG&gt;1958&lt;/STRONG&gt;. The problem is that in the last number (1958) the "&lt;STRONG&gt;Drop Outs&lt;/STRONG&gt;" number, which is &lt;STRONG&gt;24&lt;/STRONG&gt;, should have been deducted and, thus, it should have been 1934. &lt;U&gt;&lt;STRONG&gt;How can I achieve that?&lt;/STRONG&gt;&lt;/U&gt; For these numbers I should note that I do not use a specific formula/function but it is just the count of patients for each case from our database.&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-center" image-alt="Patients.png" style="width: 471px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/316194iF1ED08E9D260A080/image-size/large?v=v2&amp;amp;px=999" role="button" title="Patients.png" alt="Patients.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would be really grateful if you could help me solve that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 09:43:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238003#M20246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-21T09:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238216#M20249</link>
      <description>I'm not sure I understand the question - if you are using cases from the database, then this needs fixed in database. Do you have a DAX measure that calculates "total patients (end of month)" ? If so, please post it here and we can help you update it. If not, please provide name of table and columns and/or measures that you have available in the data model to use for this.</description>
      <pubDate>Tue, 21 Jul 2020 11:11:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238216#M20249</guid>
      <dc:creator>AllisonKennedy</dc:creator>
      <dc:date>2020-07-21T11:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238311#M20258</link>
      <description>&lt;P&gt;@Anonymous , I give a solution some time back. See if that can help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Churn-Rate-lost-Customer/m-p/1173754#M529196" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Churn-Rate-lost-Customer/m-p/1173754#M529196&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 11:55:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238311#M20258</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-21T11:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238736#M20279</link>
      <description>&lt;P&gt;Thanks for your interest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just taking the data from the database without having any DAX measures that calculate both of them, including "total patients (end of month)". I use the table "DiseaseGrps" and from there the one titled "Disease Group", which I added on &lt;STRONG&gt;Columns&lt;/STRONG&gt;. Moreover, I use the table "Personalized_Compliance" and from there the one titled "PatientID", which I added on &lt;STRONG&gt;Values&lt;/STRONG&gt; as "Count of PatientID".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I assume that I will have to create a measure so as to do what I described on my post, is that right?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 14:37:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238736#M20279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-21T14:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238786#M20282</link>
      <description>&lt;P&gt;Hello amitchandak,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately it's not the case this time. Could you think about it as well, please?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 14:47:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1238786#M20282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-21T14:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1240439#M20339</link>
      <description>What have you put in 'rows' then?&lt;BR /&gt;&lt;BR /&gt;Is "total patients (end of month)" a measure or column in your database? If you can upload screenshots of the Fields pane that might help. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;If they are measures, just do new Measure:&lt;BR /&gt;MyPatientCount (end of month) = [Total Patients (End of Month] - [Drop Outs]&lt;BR /&gt;&lt;BR /&gt;Sorry for all the questions, but I'm still a little unclear on what the report looks like.&lt;BR /&gt;Thanks!</description>
      <pubDate>Wed, 22 Jul 2020 06:25:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1240439#M20339</guid>
      <dc:creator>AllisonKennedy</dc:creator>
      <dc:date>2020-07-22T06:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1241499#M20357</link>
      <description>&lt;P&gt;Allison thank you so much for your interest and your kindness to help me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have put nothing in "rows" as you will see below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am uploading photos so as to make you have a clear view.&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="InkedPBIDesktop_CCW9lneoqX_LI.jpg" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/317235iDF7C0B50E60D6F98/image-size/large?v=v2&amp;amp;px=999" role="button" title="InkedPBIDesktop_CCW9lneoqX_LI.jpg" alt="InkedPBIDesktop_CCW9lneoqX_LI.jpg" /&gt;&lt;/span&gt;&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-center" image-alt="InkedPBIDesktop_iXOBosiqBY_LI.jpg" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/317237i954AA6210389510B/image-size/large?v=v2&amp;amp;px=999" role="button" title="InkedPBIDesktop_iXOBosiqBY_LI.jpg" alt="InkedPBIDesktop_iXOBosiqBY_LI.jpg" /&gt;&lt;/span&gt;&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-center" image-alt="InkedPBIDesktop_rpAwnpkwHI_LI.jpg" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/317236iC7D5A4C0B6101223/image-size/large?v=v2&amp;amp;px=999" role="button" title="InkedPBIDesktop_rpAwnpkwHI_LI.jpg" alt="InkedPBIDesktop_rpAwnpkwHI_LI.jpg" /&gt;&lt;/span&gt;&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-center" image-alt="PBIDesktop_Y7ShJqnaob.png" style="width: 212px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/317234i0DBCFAAB2A69F666/image-size/large?v=v2&amp;amp;px=999" role="button" title="PBIDesktop_Y7ShJqnaob.png" alt="PBIDesktop_Y7ShJqnaob.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have deleted some "names" because of personal data matters (for example look at the filter "CP_Description is ......", in which I had a confidential piece of information).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 11:29:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1241499#M20357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-22T11:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1241533#M20358</link>
      <description>Aha, of course, you are using text boxes for the labels.&lt;BR /&gt;&lt;BR /&gt;Right, so your data is:&lt;BR /&gt;table "DiseaseGrps" with column "Disease Group"&lt;BR /&gt;table "Personalized_Compliance" with column "PatientID"&lt;BR /&gt;Table name unknown with column "RecordDate" and table name unknown with column "Status"&lt;BR /&gt;&lt;BR /&gt;I can't see all the filters on Status, but you can build measures for your requirements using DAX filters, for example:&lt;BR /&gt;&lt;BR /&gt;Drop Outs = CALCULATE(COUNT( Personalized_Compliance[PatientID]), FILTER(Personalized_Compliance, Personalized_Compliance[Status] = "Drop-out" || Personalized_Compliance[Status] = "Com"), Month(Today())=Month(Personalized_Compliance[RecordDate]))&lt;BR /&gt;&lt;BR /&gt;adjust accordingly for your data and filter requirements.</description>
      <pubDate>Wed, 22 Jul 2020 11:48:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1241533#M20358</guid>
      <dc:creator>AllisonKennedy</dc:creator>
      <dc:date>2020-07-22T11:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1242055#M20372</link>
      <description>&lt;P&gt;Thank you so much Allison!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I am using text boxes for the labels.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correct! Table "DiseaseGrps" with column "Disease Group", table "Personalized_Compliance" with column "PatientID", table "Patients" with column "RecordDate" (or, more specifically, "RecordDate (Month)"). Lastly, table name "Personalized_Compliance" with column "Status".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as the filters on Status are concernced, take a look below please:&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-center" image-alt="PBIDesktop_rOJw6gO4v5.png" style="width: 712px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/317353iB02C24557A085921/image-size/large?v=v2&amp;amp;px=999" role="button" title="PBIDesktop_rOJw6gO4v5.png" alt="PBIDesktop_rOJw6gO4v5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now about Dax filters that you mention. Do you mean that I should make new measures (double click on "fields", then choose "new measure" and then build the function), right?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You gave an example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Drop Outs = CALCULATE(COUNT( Personalized_Compliance[PatientID]), FILTER(Personalized_Compliance, Personalized_Compliance[Status] = "Drop-out" || Personalized_Compliance[Status] = "Com"), Month(Today())=Month(Personalized_Compliance[RecordDate]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That was one expression like one line, right? It doesn't accept it. The symbol || is right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sorry for insisting on that but I am trying hard to figure out how I can just add the total patients (start of month) [line 1] to new patients in program [line 2] minus the drop outs. Then the "Total patients (end of month" will be correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 14:21:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1242055#M20372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-22T14:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: A matter with DAX functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1244411#M20421</link>
      <description>The || is an 'or' operator for the function and yes, all one line.&lt;BR /&gt;&lt;BR /&gt;The problem with the example I gave is that the table names don't match yours, and Status is in a different table, so you can't FILTER on status. You can maybe do this instead:&lt;BR /&gt;&lt;BR /&gt;Drop Outs = CALCULATE(COUNT( Personalized_Compliance[PatientID]), Personalized_Compliance[Status] = "Drop-out" , Month(Today())=Patients[RecordDate])&lt;BR /&gt;&lt;BR /&gt;Create a similar measure for Start of Month and New and then simply add/subtract all the measures to get End of Month&lt;BR /&gt;&lt;BR /&gt;If that doesn't work, please paste sample data tables or upload sample pbix so we can work with the actual columns and tables.</description>
      <pubDate>Thu, 23 Jul 2020 09:41:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/A-matter-with-DAX-functions/m-p/1244411#M20421</guid>
      <dc:creator>AllisonKennedy</dc:creator>
      <dc:date>2020-07-23T09:41:34Z</dc:date>
    </item>
  </channel>
</rss>

