<?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 Matrix Help in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Matrix-Help/m-p/2480377#M4487</link>
    <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I'm new to Power BI, and am struggling with something that may be simple, so I apologize in advance. I applied a Conditional Formating to a Matrix table to shade any # &amp;gt;= 75 Green. Now what I need is to have the subtotal give me the % that is Shaded? I can't seem to figure it out, if it's even possible? Please help. So in the example below, for montth 2 it should be 100%, same for 3 &amp;amp; 4. month 5 should be 66.66%. Any idea how I can get to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dlynk196_1-1651060190641.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/705796i8773E10753ED7E67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dlynk196_1-1651060190641.png" alt="dlynk196_1-1651060190641.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 27 Apr 2022 11:51:13 GMT</pubDate>
    <dc:creator>dlynk196</dc:creator>
    <dc:date>2022-04-27T11:51:13Z</dc:date>
    <item>
      <title>Matrix Help</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Matrix-Help/m-p/2480377#M4487</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I'm new to Power BI, and am struggling with something that may be simple, so I apologize in advance. I applied a Conditional Formating to a Matrix table to shade any # &amp;gt;= 75 Green. Now what I need is to have the subtotal give me the % that is Shaded? I can't seem to figure it out, if it's even possible? Please help. So in the example below, for montth 2 it should be 100%, same for 3 &amp;amp; 4. month 5 should be 66.66%. Any idea how I can get to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dlynk196_1-1651060190641.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/705796i8773E10753ED7E67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dlynk196_1-1651060190641.png" alt="dlynk196_1-1651060190641.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Apr 2022 11:51:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Matrix-Help/m-p/2480377#M4487</guid>
      <dc:creator>dlynk196</dc:creator>
      <dc:date>2022-04-27T11:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix Help</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Matrix-Help/m-p/2482636#M4492</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you could use a measure to calculate the share of "active" participants, e.g. like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Active Participants Share =
DIVIDE(
    COALESCE(
        COUNTROWS(
            FILTER(
                VALUES(Dim[Employee]),
                [Participation Rate] &amp;gt; 0.75
            )
        ),
        0
    ),
    DISTINCTCOUNT(Dim[Employee])
)&lt;/LI-CODE&gt;&lt;P&gt;The FILTER-function creates a one-table column with all employees that have a participation rate &amp;gt; 0.75 (might have to be replaced with 75, depending on how you defined the participation rate). The count of this table is then divided by the number of employees. I used the COALESCE-function to make sure that a share of 0% is reported in case no active employee is found (COUNTROWS returns blank in that case).&lt;/P&gt;&lt;P&gt;If you really want to show this number as the subtotal for the participation rate (not sure if I understood that right?), you have to create a new measure that displays the active participants share for the subtotal:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Participation Rate Adjusted =
IF(
    ISINSCOPE(Dim[Employee]),
    [Participation Rate],
    [Active Participants Share]
)&lt;/LI-CODE&gt;&lt;P&gt;In this example, the participation rate is only shown on single employee level, otherwise the active participants share is displayed. I wouldn't recommend this though, since it might be very hard to understand for the users - but maybe you had a different thing in mind anyway!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 09:04:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Matrix-Help/m-p/2482636#M4492</guid>
      <dc:creator>ripach</dc:creator>
      <dc:date>2022-04-28T09:04:01Z</dc:date>
    </item>
  </channel>
</rss>

