<?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 calculated table to create employee sales buckets based on their hire date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-table-to-create-employee-sales-buckets-based-on/m-p/2450906#M65962</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I created a sample pbix file in an expected way, but please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I tried to create a sample like below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Table = 
VAR summarytable =
    SUMMARIZECOLUMNS (
        Employee[Employee],
        'Calendar'[End of Month],
        "@SalesAmount", SUM ( Sales[Sales] )
    )
VAR firstsalesmonthtable =
    ADDCOLUMNS (
        summarytable,
        "@firstsalesmonth",
            MINX (
                FILTER ( summarytable, Employee[Employee] = EARLIER ( Employee[Employee] ) ),
                'Calendar'[End of Month]
            )
    )
VAR monthdifftable =
    FILTER (
        ADDCOLUMNS (
            firstsalesmonthtable,
            "@monthdiff", DATEDIFF ( [@firstsalesmonth], 'Calendar'[End of Month], MONTH ) + 1
        ),
        [@monthdiff] &amp;lt;= 3
    )
VAR descriptiontable =
    ADDCOLUMNS (
        monthdifftable,
        "@description", LOOKUPVALUE ( 'Description'[Description], 'Description'[index], [@monthdiff] )
    )
RETURN
    SUMMARIZE (
        descriptiontable,
        Employee[Employee],
        [@description],
        [@SalesAmount]
    )&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 12 Apr 2022 02:46:03 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2022-04-12T02:46:03Z</dc:date>
    <item>
      <title>DAX calculated table to create employee sales buckets based on their hire date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-table-to-create-employee-sales-buckets-based-on/m-p/2450543#M65932</link>
      <description>&lt;P&gt;Hey guys, I'm trying to create a DAX calculated table which sums up the sales for each employee based on their hire date, then places these sales into different buckets. For example, if Bob Dylan began working on 6/1/2021 his and his month 1 sales were $5,000, then this should go in column "D". If Hope Barron began working on 8/1/2021 and her first month sales were $6,000, then this amount should go into column "D". Then second month sales should go into column "E", etc.&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, 11 Apr 2022 20:46:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-table-to-create-employee-sales-buckets-based-on/m-p/2450543#M65932</guid>
      <dc:creator>iluvcoding_91</dc:creator>
      <dc:date>2022-04-11T20:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated table to create employee sales buckets based on their hire date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-table-to-create-employee-sales-buckets-based-on/m-p/2450887#M65960</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="372731" data-lia-user-login="iluvcoding_91" class="lia-mention lia-mention-user"&gt;iluvcoding_91&lt;/a&gt; , I have done this for customers here. Do same for employee &lt;/P&gt;
&lt;P&gt;Period Of Stay – Cohort Analysis: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/ba-p/1393410" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Customer-Retention-Part-3-Period-Of-Stay-Cohort-Analysis/ba-p/1393410&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 02:33:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-table-to-create-employee-sales-buckets-based-on/m-p/2450887#M65960</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-04-12T02:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX calculated table to create employee sales buckets based on their hire date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-table-to-create-employee-sales-buckets-based-on/m-p/2450906#M65962</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I created a sample pbix file in an expected way, but please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I tried to create a sample like below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Table = 
VAR summarytable =
    SUMMARIZECOLUMNS (
        Employee[Employee],
        'Calendar'[End of Month],
        "@SalesAmount", SUM ( Sales[Sales] )
    )
VAR firstsalesmonthtable =
    ADDCOLUMNS (
        summarytable,
        "@firstsalesmonth",
            MINX (
                FILTER ( summarytable, Employee[Employee] = EARLIER ( Employee[Employee] ) ),
                'Calendar'[End of Month]
            )
    )
VAR monthdifftable =
    FILTER (
        ADDCOLUMNS (
            firstsalesmonthtable,
            "@monthdiff", DATEDIFF ( [@firstsalesmonth], 'Calendar'[End of Month], MONTH ) + 1
        ),
        [@monthdiff] &amp;lt;= 3
    )
VAR descriptiontable =
    ADDCOLUMNS (
        monthdifftable,
        "@description", LOOKUPVALUE ( 'Description'[Description], 'Description'[index], [@monthdiff] )
    )
RETURN
    SUMMARIZE (
        descriptiontable,
        Employee[Employee],
        [@description],
        [@SalesAmount]
    )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 12 Apr 2022 02:46:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-calculated-table-to-create-employee-sales-buckets-based-on/m-p/2450906#M65962</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2022-04-12T02:46:03Z</dc:date>
    </item>
  </channel>
</rss>

