<?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: Get first and last status of a member in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-first-and-last-status-of-a-member/m-p/2905027#M94749</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="66381" data-lia-user-login="Ossy81" class="lia-mention lia-mention-user"&gt;Ossy81&lt;/a&gt; , refer if these blogs can help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Latest &lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0" target="_blank"&gt;https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee884e" target="_blank"&gt;https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee884e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For first use min&lt;/P&gt;</description>
    <pubDate>Tue, 15 Nov 2022 01:46:12 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-11-15T01:46:12Z</dc:date>
    <item>
      <title>Get first and last status of a member</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-first-and-last-status-of-a-member/m-p/2904675#M94726</link>
      <description>&lt;P&gt;Working on a report to show how many members moved between different statuses. How many from:&lt;/P&gt;&lt;P&gt;A -&amp;gt; B&lt;/P&gt;&lt;P&gt;B-&amp;gt;A&lt;/P&gt;&lt;P&gt;A-&amp;gt;C&lt;/P&gt;&lt;P&gt;within a selected period. So it could be that member went from A-&amp;gt;B and than from B-&amp;gt;C but for the report it should be registered as a member moved from A-&amp;gt;C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used this formula:&lt;/P&gt;&lt;PRE&gt;&lt;FONT&gt;&lt;FONT&gt; VAR&lt;/FONT&gt;&lt;FONT&gt; MinDate = &lt;/FONT&gt;&lt;FONT&gt;CALCULATE&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt; &lt;FONT&gt;MIN&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; 'F - Transaction ML'[d_date] &lt;/FONT&gt;&lt;FONT&gt;)&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;NOT&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt; &lt;FONT&gt;ISBLANK&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; 'F - Transaction ML'[d_member] &lt;/FONT&gt;&lt;FONT&gt;)&lt;/FONT&gt; &lt;FONT&gt;)&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;ALLSELECTED&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; 'F - Transaction ML'[d_date] &lt;/FONT&gt;&lt;FONT&gt;)&lt;/FONT&gt; &lt;FONT&gt;)&lt;/FONT&gt;&lt;FONT&gt; &lt;BR /&gt;&lt;BR /&gt;VAR&lt;/FONT&gt;&lt;FONT&gt; Weekstartdate = MinDate - &lt;/FONT&gt;&lt;FONT&gt;WEEKDAY&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; MinDate, &lt;/FONT&gt;&lt;FONT&gt;2&lt;/FONT&gt; &lt;FONT&gt;)&lt;/FONT&gt;&lt;FONT&gt; + &lt;/FONT&gt;&lt;FONT&gt;1&lt;/FONT&gt;&lt;FONT&gt; &lt;BR /&gt;&lt;BR /&gt;VAR&lt;/FONT&gt;&lt;FONT&gt; FirstMemberStatus = &lt;/FONT&gt;&lt;FONT&gt;CALCULATE&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt; &lt;FONT&gt;MIN&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; 'F - Transaction ML'[Member Status] &lt;/FONT&gt;&lt;FONT&gt;)&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;ALLEXCEPT&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; 'F - Transaction ML', 'D - Calendar' &lt;/FONT&gt;&lt;FONT&gt;)&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT&gt;, &lt;/FONT&gt;&lt;FONT&gt;FILTER&lt;/FONT&gt; &lt;FONT&gt;(&lt;/FONT&gt;&lt;FONT&gt; 'F - Transaction ML'&lt;BR /&gt;, 'F - Transaction ML'[d_date] &amp;gt;= Weekstartdate &lt;/FONT&gt;&lt;FONT&gt;)&lt;/FONT&gt; &lt;FONT&gt;)&lt;/FONT&gt;&lt;FONT&gt; &lt;BR /&gt;&lt;BR /&gt;RETURN&lt;/FONT&gt;&lt;FONT&gt; FirstMemberStatus&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;And created a similar one for the last status, but then with MAX. When showing it on a member level it works fine, but i need to know "total number of members"/count distinct from status A-&amp;gt;B , A-&amp;gt;C etc...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Who could guide me how to solve this?I need somehow this calc to be always on a member level&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 20:35:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-first-and-last-status-of-a-member/m-p/2904675#M94726</guid>
      <dc:creator>Ossy81</dc:creator>
      <dc:date>2022-11-14T20:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get first and last status of a member</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-first-and-last-status-of-a-member/m-p/2905027#M94749</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="66381" data-lia-user-login="Ossy81" class="lia-mention lia-mention-user"&gt;Ossy81&lt;/a&gt; , refer if these blogs can help&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Latest &lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0" target="_blank"&gt;https://amitchandak.medium.com/power-bi-get-the-last-latest-value-of-a-category-d0cf2fcf92d0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee884e" target="_blank"&gt;https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee884e&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For first use min&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 01:46:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-first-and-last-status-of-a-member/m-p/2905027#M94749</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-15T01:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get first and last status of a member</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-first-and-last-status-of-a-member/m-p/2905410#M94776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="66381" data-lia-user-login="Ossy81" class="lia-mention lia-mention-user"&gt;Ossy81&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Do you wnat to get the number of members which the status switch from one to another? In order to get a better understanding on your requirement and give you a suitable solution, could you&amp;nbsp;please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in the table &lt;STRONG&gt;'F - Transaction ML'&lt;/STRONG&gt; (&lt;STRONG&gt;&lt;EM&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/EM&gt;&lt;/STRONG&gt;) with&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7C52042a9abdcb4f87992108da9226a782%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637982991998684943%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=UtrFZ3zCvCcIHUi%2FVD3ptir0IqV85%2BozKiH9HbdDJHc%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 05:54:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-first-and-last-status-of-a-member/m-p/2905410#M94776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-15T05:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get first and last status of a member</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-first-and-last-status-of-a-member/m-p/2906217#M94826</link>
      <description>&lt;P&gt;I'm afraid this is not going to work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; We want to know how many members moved van status A-&amp;gt; B and from A-&amp;gt; C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already had a result which shows per member the 1st and the last status:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when i do a count distinct by these statuses it doesn't work:&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;So the result what i want is:&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>Tue, 15 Nov 2022 11:30:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Get-first-and-last-status-of-a-member/m-p/2906217#M94826</guid>
      <dc:creator>Ossy81</dc:creator>
      <dc:date>2022-11-15T11:30:32Z</dc:date>
    </item>
  </channel>
</rss>

