<?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: Piechart diagram based on statistics (percentage calculation) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3539057#M136003</link>
    <description>&lt;P&gt;Dear Daniel, I've checked the Cardinality "many to one" and it worked!!!!&lt;/P&gt;&lt;P&gt;thank you A LOT for your help !!!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 15:11:23 GMT</pubDate>
    <dc:creator>Katja262373</dc:creator>
    <dc:date>2023-11-17T15:11:23Z</dc:date>
    <item>
      <title>Piechart diagram based on statistics (percentage calculation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3537654#M135935</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I’m a Data Analysis course student, trying to make a Piechart diagram to represent a sample’s educational background (60.000 people in the sample). There are 5 groups of educational institutions (column [edulvlb] of my table ‘education’: basic education (codes 000,113,129), school diploma holders (codes 212 || 213 || 221 || 222 || 223 || 229 || 311 || 312 || 313 || 321 || 322 || 323), college diploma holders (codes 412 || 413 || 421 || 422 || 423 || 510 || 520), university diploma holders (codes 610 || 620 || 710 || 720) and PhD degree holders (code 800).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to count the codes per category (for example, how many times 000,113, 129 appear in column [edulvlb]) and then divide it by total amount of unfiltered rows (about 60.000 rows) of my entire datascheet. Therefore the choice of || which means OR in data selection…&lt;/P&gt;&lt;P&gt;So I have divided this process in 2 steps:&lt;/P&gt;&lt;P&gt;1.&lt;/P&gt;&lt;P&gt;Basis = CALCULATE (COUNTROWS(education),FILTER ('education',education[edulvlb] = 000 || 113 ||129))&lt;/P&gt;&lt;P&gt;School = CALCULATE (COUNTROWS(education),FILTER ('education',education[edulvlb] = 212 || 213 || 221 || 222 || 223 || 229 || 311 || 312 || 313 || 321 || 322 || 323))&lt;/P&gt;&lt;P&gt;College = CALCULATE (COUNTROWS(education),FILTER ('education',education[edulvlb] = 412 || 413 || 421 || 422 || 423 || 510 || 520))&lt;/P&gt;&lt;P&gt;Uni = CALCULATE (COUNTROWS(education),FILTER ('education',education[edulvlb] = 610 || 620 || 710 || 720))&lt;/P&gt;&lt;P&gt;PhD = CALCULATE (COUNTROWS(education),FILTER ('education',education[edulvlb] = 800))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&lt;/P&gt;&lt;P&gt;PercentageBasis = DIVIDE([Basis], Calculate([Basis], ALL('education')))&lt;/P&gt;&lt;P&gt;PercentageSchool = DIVIDE([School], Calculate([School], ALL('education')))&lt;/P&gt;&lt;P&gt;PercentageCollege = DIVIDE([College], Calculate([College], ALL('education')))&lt;/P&gt;&lt;P&gt;PercentageUni = DIVIDE([Uni], Calculate([Uni], ALL('education')))&lt;/P&gt;&lt;P&gt;PercentagePhD = DIVIDE([PhD], Calculate([PhD], ALL('education'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the piechart shows 5 segments of totally similar size 20%.. what have I done wrong here..maybe you could advise ?? Looking forward to hearing from you, thank you again for your help !!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Katia&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 18:05:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3537654#M135935</guid>
      <dc:creator>Katja262373</dc:creator>
      <dc:date>2023-11-16T18:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart diagram based on statistics (percentage calculation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3538670#M135972</link>
      <description>&lt;P&gt;create a dimension table like this&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;and link the code column to the code column of&amp;nbsp;&lt;SPAN&gt;'education, one to many&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;put the Groups column in the Legend area&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Create a measure as below, and put it in the Values area&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CodeCount=COUNTROWS('education)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 07:59:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3538670#M135972</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-11-17T07:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart diagram based on statistics (percentage calculation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3539057#M136003</link>
      <description>&lt;P&gt;Dear Daniel, I've checked the Cardinality "many to one" and it worked!!!!&lt;/P&gt;&lt;P&gt;thank you A LOT for your help !!!&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 15:11:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3539057#M136003</guid>
      <dc:creator>Katja262373</dc:creator>
      <dc:date>2023-11-17T15:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart diagram based on statistics (percentage calculation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3539067#M136004</link>
      <description>&lt;P&gt;Hi Daniel, I forgot to say that I actually have a column with unique values (every respondent of a survey has an id-number - is mentioned in IDNO column)... maybe I should include it in the graph?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 12:00:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3539067#M136004</guid>
      <dc:creator>Katja262373</dc:creator>
      <dc:date>2023-11-17T12:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart diagram based on statistics (percentage calculation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3541293#M136079</link>
      <description>&lt;P&gt;if the column values are unique, DISTINCTCOUNT(education[IDNO]) will give a same result with COUNTROWS(education)&lt;/P&gt;</description>
      <pubDate>Sun, 19 Nov 2023 23:48:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3541293#M136079</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-11-19T23:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart diagram based on statistics (percentage calculation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3602640#M139195</link>
      <description>&lt;P&gt;Thank you very much for your kind help Daniel! Merry Christmas!&amp;nbsp;&lt;BR /&gt;p.s. sorry for my belated response, I gave birth to a baby girl .....&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2023 22:52:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3602640#M139195</guid>
      <dc:creator>Katja262373</dc:creator>
      <dc:date>2023-12-26T22:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart diagram based on statistics (percentage calculation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3602808#M139200</link>
      <description>&lt;P&gt;Congratulations，I wish the baby grow up healthy and happy.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 04:05:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3602808#M139200</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-12-27T04:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Piechart diagram based on statistics (percentage calculation)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3608272#M139422</link>
      <description>&lt;P&gt;Thank you dear Daniel!! Happy new 2024 year!!!!!&lt;/P&gt;</description>
      <pubDate>Sat, 30 Dec 2023 13:50:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Piechart-diagram-based-on-statistics-percentage-calculation/m-p/3608272#M139422</guid>
      <dc:creator>Katja262373</dc:creator>
      <dc:date>2023-12-30T13:50:38Z</dc:date>
    </item>
  </channel>
</rss>

