<?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 Using a filter to then calculate a percentage in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465361#M27713</link>
    <description>&lt;P&gt;Hi. I am new to PowerBi but getting to grips with the Query Editor etc. I've been thrown in (I jumped really) the deep end with creating reports from our new Dynamics app and need to create a number of measures (all the same but with different variables).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an 'incident' table and can count the number of [incidentid]. In Card visuals I have filtered by a related table 'substatus' and picked different variables eg, In Progress, Completed. This has given me the totals. What I now want to do is create a Card that shows the % of the total number of incidentid that are In Progress. If there are 375 incidents in total (showing in an unfiltered card) and 75 in progress (showing in the filtered card); what is the DAX that would give me the result 20% (in a card).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hopw that makes sense. PJ&lt;/P&gt;</description>
    <pubDate>Fri, 30 Oct 2020 08:56:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-30T08:56:29Z</dc:date>
    <item>
      <title>Using a filter to then calculate a percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465361#M27713</link>
      <description>&lt;P&gt;Hi. I am new to PowerBi but getting to grips with the Query Editor etc. I've been thrown in (I jumped really) the deep end with creating reports from our new Dynamics app and need to create a number of measures (all the same but with different variables).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an 'incident' table and can count the number of [incidentid]. In Card visuals I have filtered by a related table 'substatus' and picked different variables eg, In Progress, Completed. This has given me the totals. What I now want to do is create a Card that shows the % of the total number of incidentid that are In Progress. If there are 375 incidents in total (showing in an unfiltered card) and 75 in progress (showing in the filtered card); what is the DAX that would give me the result 20% (in a card).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hopw that makes sense. PJ&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 08:56:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465361#M27713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-30T08:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using a filter to then calculate a percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465549#M27715</link>
      <description>&lt;P&gt;Hi Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'd need to &lt;STRONG&gt;show some of your sample data&lt;/STRONG&gt;, the fields in your tables, etc. to get an accurate answer.&lt;/P&gt;
&lt;P&gt;Try something like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
DIVIDE (
    CALCULATE (
        DISTINCTCOUNT ( Table1[incidentid] ),
        SustatusTable[Status] = "Progress"
    ),
    CALCULATE (
        DISTINCTCOUNT ( Table1[incidentid] ),
        ALL ( SustatusTable[Status] )
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;and format as %&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 09:42:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465549#M27715</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-10-30T09:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using a filter to then calculate a percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465672#M27719</link>
      <description>&lt;P&gt;Outstanding; looks like it has worked; and I even figured out how to use the FORMAT function &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking about getting a tutor for the specific sort of questions I will likely have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PJ&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 10:20:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465672#M27719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-30T10:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using a filter to then calculate a percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465737#M27723</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm sending you a private message with regard to the tutoring/support.&lt;/P&gt;
&lt;P&gt;Instead of using the FORMAT(), you can also set the format in the Measure tools menu. Select the measure, then Measure tools, then choose %:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please mark the question solved when done and consider &lt;FONT color="#FF9900"&gt;giving a thumbs up if posts are helpful.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;Contact me privately for support with any larger-scale BI needs, tutoring, etc.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Cheers&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 10:58:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465737#M27723</guid>
      <dc:creator>AlB</dc:creator>
      <dc:date>2020-10-30T10:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using a filter to then calculate a percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465911#M27727</link>
      <description>&lt;P&gt;Ah ha&lt;/P&gt;&lt;P&gt;I thought there probably should be an easier way however my tab list only show the following:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;It looks like I need to figure out how to get the Measures Tools option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I said I was new to this &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PJ&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 11:37:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465911#M27727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-30T11:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using a filter to then calculate a percentage</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465991#M27729</link>
      <description>&lt;P&gt;Sorted; didn't have the latest version with the new tools etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PJ&lt;/P&gt;</description>
      <pubDate>Fri, 30 Oct 2020 12:39:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-a-filter-to-then-calculate-a-percentage/m-p/1465991#M27729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-30T12:39:56Z</dc:date>
    </item>
  </channel>
</rss>

