<?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: Measure to calculate a percentage of total based on multiple responses in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-a-percentage-of-total-based-on-multiple/m-p/3998278#M155564</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="709901" data-lia-user-login="Mike35" class="lia-mention lia-mention-user"&gt;Mike35&lt;/a&gt;&amp;nbsp;, Try using below formula&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Total % = 
DIVIDE(
    CALCULATE(
        COUNTROWS('YourTable'),
        'YourTable'[Score] = "YES" || 'YourTable'[Score] = "MAYBE"
    ),
    CALCULATE(
        COUNTROWS('YourTable'),
        ALLEXCEPT('YourTable', 'YourTable'[Date])
    )
)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jun 2024 13:14:53 GMT</pubDate>
    <dc:creator>bhanu_gautam</dc:creator>
    <dc:date>2024-06-18T13:14:53Z</dc:date>
    <item>
      <title>Measure to calculate a percentage of total based on multiple responses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-a-percentage-of-total-based-on-multiple/m-p/3998264#M155556</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping someone can help. I'm looking to create a measure which demonstrates a Total % based on multiple count values of data in a given field. The measure would then be used in conjunction with a date slicer to have a total % not just per day, but for a selection of days. For example;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table name: &lt;STRONG&gt;Observation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If "YES" or "MAYBE" are entered it would be calculated as a positive response which I'm looking to calculate as a % to display in a card visual.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On 01/06/2024, there are 2 "YES, 1 "MAYBE" and 1 "NO" response, calculating as 75%.&lt;/P&gt;&lt;P&gt;On 01/06/2024-03/06/2024 inclusive, there are 6 "YES", 3 "MAYBE", 9 "NO" responses, so the pecentage is 50%.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any solutions you can help with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 13:05:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-a-percentage-of-total-based-on-multiple/m-p/3998264#M155556</guid>
      <dc:creator>Mike35</dc:creator>
      <dc:date>2024-06-18T13:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Measure to calculate a percentage of total based on multiple responses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-a-percentage-of-total-based-on-multiple/m-p/3998278#M155564</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="709901" data-lia-user-login="Mike35" class="lia-mention lia-mention-user"&gt;Mike35&lt;/a&gt;&amp;nbsp;, Try using below formula&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Total % = 
DIVIDE(
    CALCULATE(
        COUNTROWS('YourTable'),
        'YourTable'[Score] = "YES" || 'YourTable'[Score] = "MAYBE"
    ),
    CALCULATE(
        COUNTROWS('YourTable'),
        ALLEXCEPT('YourTable', 'YourTable'[Date])
    )
)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 13:14:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-to-calculate-a-percentage-of-total-based-on-multiple/m-p/3998278#M155564</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2024-06-18T13:14:53Z</dc:date>
    </item>
  </channel>
</rss>

