<?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 Calculate the number of customers per measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-number-of-customers-per-measure/m-p/3024451#M103062</link>
    <description>&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;I need help with calculating the number of customers based on the same number of Customer Lifetime Months. Basically, I need to create a bar chart that will show how many customers we have who stayed with us for 47, 46, etc months.&amp;nbsp;Customer Lifetime Months is the measure I've created. Any help is appreciated&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 02:21:51 GMT</pubDate>
    <dc:creator>xariet</dc:creator>
    <dc:date>2023-01-17T02:21:51Z</dc:date>
    <item>
      <title>Calculate the number of customers per measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-number-of-customers-per-measure/m-p/3024451#M103062</link>
      <description>&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;I need help with calculating the number of customers based on the same number of Customer Lifetime Months. Basically, I need to create a bar chart that will show how many customers we have who stayed with us for 47, 46, etc months.&amp;nbsp;Customer Lifetime Months is the measure I've created. Any help is appreciated&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 02:21:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-number-of-customers-per-measure/m-p/3024451#M103062</guid>
      <dc:creator>xariet</dc:creator>
      <dc:date>2023-01-17T02:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the number of customers per measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-number-of-customers-per-measure/m-p/3024666#M103073</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;One of ways to achieve this is to create an axis table something like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&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;&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Customers count by Lifetime measure: =
VAR _axis =
    MAX ( 'Axis table'[Lifetime Measure result] )
RETURN
    COUNTROWS (
        FILTER (
            ADDCOLUMNS (
                DISTINCT ( Data[Customer] ),
                "@lifetimemeasure", [Lifetime measure:]
            ),
            [@lifetimemeasure] = _axis
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 03:50:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-number-of-customers-per-measure/m-p/3024666#M103073</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-01-17T03:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the number of customers per measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-number-of-customers-per-measure/m-p/3024993#M103103</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;, it works perfectly!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 07:41:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-the-number-of-customers-per-measure/m-p/3024993#M103103</guid>
      <dc:creator>xariet</dc:creator>
      <dc:date>2023-01-17T07:41:41Z</dc:date>
    </item>
  </channel>
</rss>

