<?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 Help with chart to show distribution in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-chart-to-show-distribution/m-p/3291703#M122547</link>
    <description>&lt;P&gt;I have a list of names and values (value calculation shown in image). I want to create a chart that shows distribution of these values. The chart would have 1-40 along the bottom and a bar showing the total number of each '1ticket peryear'&lt;/P&gt;&lt;P&gt;So from the data below the value for 22 should = 7. As 22 shows 7 times in the dataset.&lt;/P&gt;&lt;P&gt;This feels like it should be easy but i can't get my brain to bring it together in PBI! TIA&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;</description>
    <pubDate>Mon, 19 Jun 2023 19:37:48 GMT</pubDate>
    <dc:creator>OllyTron</dc:creator>
    <dc:date>2023-06-19T19:37:48Z</dc:date>
    <item>
      <title>Help with chart to show distribution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-chart-to-show-distribution/m-p/3291703#M122547</link>
      <description>&lt;P&gt;I have a list of names and values (value calculation shown in image). I want to create a chart that shows distribution of these values. The chart would have 1-40 along the bottom and a bar showing the total number of each '1ticket peryear'&lt;/P&gt;&lt;P&gt;So from the data below the value for 22 should = 7. As 22 shows 7 times in the dataset.&lt;/P&gt;&lt;P&gt;This feels like it should be easy but i can't get my brain to bring it together in PBI! TIA&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;</description>
      <pubDate>Mon, 19 Jun 2023 19:37:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-chart-to-show-distribution/m-p/3291703#M122547</guid>
      <dc:creator>OllyTron</dc:creator>
      <dc:date>2023-06-19T19:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with chart to show distribution</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-chart-to-show-distribution/m-p/3294371#M122688</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="577624" data-lia-user-login="OllyTron" class="lia-mention lia-mention-user"&gt;OllyTron&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _table=
SUMMARIZE(
    ALL('Table'),'Table'[Index],'Table'[Year],'Table'[TickerCount],"Value",
    CALCULATE(
    SUM('Table'[TickerCount])/DISTINCTCOUNT('Date'[Year])))
VAR _ADDCOUNT =ADDCOLUMNS(
    _table,"count",COUNTX(FILTER(_table,[Value]=EARLIER([Value])),[Value]))
return
SUMX(FILTER(_ADDCOUNT,[Index]= MAX('Table'[Index])),[count])&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 02:46:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-chart-to-show-distribution/m-p/3294371#M122688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-21T02:46:32Z</dc:date>
    </item>
  </channel>
</rss>

