<?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: How to calculate % of a count of a column? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3151034#M112858</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I separated this into 2 measures so you can see the results, but feel free to combine them.&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this is helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 20:56:37 GMT</pubDate>
    <dc:creator>WinterMist</dc:creator>
    <dc:date>2023-03-23T20:56:37Z</dc:date>
    <item>
      <title>How to calculate % of a count of a column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3150326#M112823</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I'm trying to calculate the % of waste distribution type for every month year so for example in the above image, I want a measure to calculate the % of every month so it should be like for Jan 2021 the % of Closed loop recycling =( 7/(7+15+24))*100 and same for landfill and open loop recycling. I want to display the % of waste distribution in a line chart against the date to get a trend of how much is he % of waste distrbution for every type in every month and year.&lt;/P&gt;&lt;P&gt;How do I create a measure for this?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 15:00:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3150326#M112823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-23T15:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of a count of a column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3151034#M112858</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I separated this into 2 measures so you can see the results, but feel free to combine them.&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this is helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 20:56:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3151034#M112858</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-03-23T20:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of a count of a column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156604#M113235</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I used the above formula to calculate month total and it's not giving the correct inforation and when I bring it to the visualisation it's not displaying any info.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 16:14:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156604#M113235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-27T16:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of a count of a column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156715#M113240</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whenever this happens to me, it's helpful to separate each VAR (and the RETURN section) into its own measure to isolate smaller pieces of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the at-fault piece of code is a CALCULATE statement, try changing it a bit to see if the issue is with the FILTER section or something else.&amp;nbsp; In this way, you should be able to identify the exact line of code that's causing the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once you can pinpoint which piece of code is causing the visual to break, then you need to click "See Details" to see what the error message is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 17:21:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156715#M113240</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-03-27T17:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of a count of a column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156822#M113244</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the formula you have provided and I'm getting an error in the Count of waste distribution type in the 1st image as you can see. I've added the screenshot for the count of waste distribution type measure which I have created. Could you please help with what's going wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 17:58:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156822#M113244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-27T17:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of a count of a column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156844#M113247</link>
      <description>&lt;P&gt;I did not have access to your dataset, so I simply created a table based on your screenshot from the original post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case, [Count of Waste Distribution Type] is actually a column in the table.&lt;/P&gt;&lt;P&gt;But you don't have this column, which is the reason for the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your case, it's the measure.&lt;/P&gt;&lt;P&gt;Try replacing the SUM clause with your measure as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;[Count of Waste distribution type],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;ALL('Waste data (3)'),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;'Calendar'[Date] = GivenDate&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&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;If it's still not working, perhaps you can share the PBIX on Google Drive and share the link here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 18:24:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156844#M113247</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2023-03-27T18:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of a count of a column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156927#M113252</link>
      <description>&lt;P&gt;The new replaced SUM clause worked for me. Can you give me the new % measure as well?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 19:14:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156927#M113252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-27T19:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate % of a count of a column?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156947#M113255</link>
      <description>&lt;P&gt;I created the % measure and it worked. Thank you so much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I had been stuck on this for more than 2 weeks. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 19:31:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-calculate-of-a-count-of-a-column/m-p/3156947#M113255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-27T19:31:07Z</dc:date>
    </item>
  </channel>
</rss>

