<?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 Calculating a percentage between two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-percentage-between-two-tables/m-p/4619644#M176801</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to calculate a percentage between two tables with the below coding, and struggling to get an ouput. Wondered if anyone can point me in the direction of where I am going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to generate a completion percentage per area, of staff completing a form. In essence two tables, first table (&lt;STRONG&gt;'Quiz Results'&lt;/STRONG&gt;) is the output of the form whereby staff are selecting the area they are based in during the form completion &lt;STRONG&gt;[Area]&lt;/STRONG&gt;. Second table (&lt;STRONG&gt;'Staff Base'&lt;/STRONG&gt;) is a staff list with a field for the location the staff are based in &lt;STRONG&gt;[Base_Name]&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AreaCompletion% = 
DIVIDE(
    CALCULATE(
        COUNTROWS('Quiz Results'),
        'Quiz Results'[Area] = "London"
    ),
    CALCULATE(
        COUNTROWS('Staff Base'),
        'Staff Base'[Base_Name] = "London"
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When applying to a card I'm just getting a blank output. Expected output would be 56.48%, as we have 431 responses with an area of "London" where there are 763 staff with a Base_Name of "London".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 10:21:51 GMT</pubDate>
    <dc:creator>Mike35</dc:creator>
    <dc:date>2025-03-21T10:21:51Z</dc:date>
    <item>
      <title>Calculating a percentage between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-percentage-between-two-tables/m-p/4619644#M176801</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to calculate a percentage between two tables with the below coding, and struggling to get an ouput. Wondered if anyone can point me in the direction of where I am going wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to generate a completion percentage per area, of staff completing a form. In essence two tables, first table (&lt;STRONG&gt;'Quiz Results'&lt;/STRONG&gt;) is the output of the form whereby staff are selecting the area they are based in during the form completion &lt;STRONG&gt;[Area]&lt;/STRONG&gt;. Second table (&lt;STRONG&gt;'Staff Base'&lt;/STRONG&gt;) is a staff list with a field for the location the staff are based in &lt;STRONG&gt;[Base_Name]&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AreaCompletion% = 
DIVIDE(
    CALCULATE(
        COUNTROWS('Quiz Results'),
        'Quiz Results'[Area] = "London"
    ),
    CALCULATE(
        COUNTROWS('Staff Base'),
        'Staff Base'[Base_Name] = "London"
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When applying to a card I'm just getting a blank output. Expected output would be 56.48%, as we have 431 responses with an area of "London" where there are 763 staff with a Base_Name of "London".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 10:21:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-percentage-between-two-tables/m-p/4619644#M176801</guid>
      <dc:creator>Mike35</dc:creator>
      <dc:date>2025-03-21T10:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a percentage between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-percentage-between-two-tables/m-p/4619656#M176803</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;Measure for the count of quiz results per area:&lt;/P&gt;
&lt;P&gt;QuizResultsCount = COUNTROWS('Quiz Results')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure for the count of staff per base:&lt;/P&gt;
&lt;P&gt;StaffCount = COUNTROWS('Staff Base')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure to calculate the completion percentage:&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;AreaCompletion% = &lt;BR /&gt;DIVIDE(&lt;BR /&gt;[QuizResultsCount],&lt;BR /&gt;[StaffCount]&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 10:27:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-percentage-between-two-tables/m-p/4619656#M176803</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-03-21T10:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating a percentage between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-percentage-between-two-tables/m-p/4619688#M176806</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="625922" data-lia-user-login="bhanu_gautam" class="lia-mention lia-mention-user"&gt;bhanu_gautam&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 10:41:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculating-a-percentage-between-two-tables/m-p/4619688#M176806</guid>
      <dc:creator>Mike35</dc:creator>
      <dc:date>2025-03-21T10:41:51Z</dc:date>
    </item>
  </channel>
</rss>

