<?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: Dax measure percentage for a group in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-percentage-for-a-group/m-p/3529834#M135632</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="634982" data-lia-user-login="nachobarr2020" class="lia-mention lia-mention-user"&gt;nachobarr2020&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a measure.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _a= COUNT('Table'[gid])
var _b=CALCULATE(COUNT('Table'[gid]),ALL('Table'))
return DIVIDE(_a,_b,0)&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 02:13:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-11-13T02:13:10Z</dc:date>
    <item>
      <title>Dax measure percentage for a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-percentage-for-a-group/m-p/3528915#M135599</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello dear community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope you are ok. I need your assistance with the following. I have a bar chart that shows the ammount of people by gender and group age as shown in the image. The total ammount of people is 511 and for instance for the age group 45-49 the amount of females is 59, this is correct, this I do it by putting into the bar chart the variable GID (which is my id) and then display the count of them. However when I want to see the result as a percentage the results are not correct. Instead of showing for the given case 59/511= 11% it shows 6%. I would need maybe a measure in dax so that when I put in the x axis the age group and in the y axis the measure the % over the total is correctly displayed by gender (so in this case for instance 11% female and 9% male for the age group 45-49)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!!!&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 09:49:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-percentage-for-a-group/m-p/3528915#M135599</guid>
      <dc:creator>nachobarr2020</dc:creator>
      <dc:date>2023-11-11T09:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dax measure percentage for a group</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-percentage-for-a-group/m-p/3529834#M135632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="634982" data-lia-user-login="nachobarr2020" class="lia-mention lia-mention-user"&gt;nachobarr2020&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) This is my test data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;(2) We can create a measure.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
var _a= COUNT('Table'[gid])
var _b=CALCULATE(COUNT('Table'[gid]),ALL('Table'))
return DIVIDE(_a,_b,0)&lt;/LI-CODE&gt;
&lt;P&gt;(3) Then the result is as follows.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 02:13:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-measure-percentage-for-a-group/m-p/3529834#M135632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-13T02:13:10Z</dc:date>
    </item>
  </channel>
</rss>

