<?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: Percentage of MCR by financial class not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-MCR-by-financial-class-not-working/m-p/3227400#M118239</link>
    <description>&lt;P&gt;please try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MCR% = IF( CONTAINS(Data1,Data1[FC],"MCR"),
    DIVIDE(
        CALCULATE([Total Cases],Data1[FC] = "MCR"),
        [Total Cases],
        0
    ),0
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 15:19:38 GMT</pubDate>
    <dc:creator>eliasayyy</dc:creator>
    <dc:date>2023-05-09T15:19:38Z</dc:date>
    <item>
      <title>Percentage of MCR by financial class not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-MCR-by-financial-class-not-working/m-p/3227268#M118230</link>
      <description>&lt;P&gt;Percentage of Medicare by financial class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help with a measure in Power pivot which does not do what I expect it to do.&lt;/P&gt;&lt;P&gt;In healthcare one differentiation we use is a financial class, or insurance type.&amp;nbsp; In my organization we use MCR for Medicare.&lt;/P&gt;&lt;P&gt;I set up a measure as follows:&lt;/P&gt;&lt;P&gt;&lt;!--  StartFragment   --&gt;&lt;SPAN class=""&gt;MCR % Cases:=&lt;/SPAN&gt;&lt;SPAN class=""&gt;divide&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN class=""&gt;([Cases],Data[FC]=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"MCR"&lt;/SPAN&gt;&lt;SPAN class=""&gt;),[Cases],0)&lt;/SPAN&gt;&lt;!--  EndFragment   --&gt;&lt;/P&gt;&lt;P&gt;It works fine for pivot tables like MCR % for each month or by doctor, etc.&amp;nbsp; But it does not behave the way I would expect for a pivot table by financial class.&amp;nbsp; I would expect Medicare to be 100% and all the others to be zero.&amp;nbsp; Here is what I get instead:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It appears to be dividing the total number of medicare cases in all FC by the number of cases for each financial class (for BC 641/428 or 149.77%), but I would expect that for BC it would be dividing the number of medicare cases in the blue cross financial class by the total number of BC cases, or 0/428 which should be 0.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is my formula wrong or is my expectation wrong (maybe I am having a brain freeze)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to attach a link to dropbox, but it does not always seem to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the data in this spreadsheet is fake, made up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/q5v33edzs54jdnd2ddaj5/Test-MCR.xlsx?dl=0&amp;amp;rlkey=f41yo7wstgz53wv8lg1cgizic" target="_blank" rel="noopener"&gt;https://www.dropbox.com/scl/fi/q5v33edzs54jdnd2ddaj5/Test-MCR.xlsx?dl=0&amp;amp;rlkey=f41yo7wstgz53wv8lg1cgizic&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 14:27:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-MCR-by-financial-class-not-working/m-p/3227268#M118230</guid>
      <dc:creator>BaldAccountant</dc:creator>
      <dc:date>2023-05-09T14:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of MCR by financial class not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-MCR-by-financial-class-not-working/m-p/3227323#M118233</link>
      <description>&lt;P&gt;hello can you explain better your goaal, the % is what exactly all values divided by cases of each FC? or what exactly so lets say BC has 10 , COMM has 15 MCD has 20 MCR has 30 and WC has 25 so total is 100 and BC % is 10% ...&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 14:53:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-MCR-by-financial-class-not-working/m-p/3227323#M118233</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-09T14:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of MCR by financial class not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-MCR-by-financial-class-not-working/m-p/3227338#M118234</link>
      <description>&lt;P&gt;Since there are no medicare cases in BC (all those cases are BC), I would expect the % of medicare cases for the BC financial class to be zero&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 14:58:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-MCR-by-financial-class-not-working/m-p/3227338#M118234</guid>
      <dc:creator>BaldAccountant</dc:creator>
      <dc:date>2023-05-09T14:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Percentage of MCR by financial class not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-MCR-by-financial-class-not-working/m-p/3227400#M118239</link>
      <description>&lt;P&gt;please try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;MCR% = IF( CONTAINS(Data1,Data1[FC],"MCR"),
    DIVIDE(
        CALCULATE([Total Cases],Data1[FC] = "MCR"),
        [Total Cases],
        0
    ),0
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 15:19:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percentage-of-MCR-by-financial-class-not-working/m-p/3227400#M118239</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-05-09T15:19:38Z</dc:date>
    </item>
  </channel>
</rss>

