<?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 Measure - Lastdate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1434894#M26786</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255456" data-lia-user-login="andybamber" class="lia-mention lia-mention-user"&gt;andybamber&lt;/a&gt;&amp;nbsp; Hi , You can use this formula . I took employee Column to get distinct count by month .&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;headcount_Max_Wk = CALCULATE(&lt;STRONG&gt;DISTINCTCOUNT(Sheet1[Employee])&lt;/STRONG&gt;,LASTDATE(Sheet1[SnapShot Date Stamp]))&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 15 Oct 2020 04:31:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-10-15T04:31:39Z</dc:date>
    <item>
      <title>Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1433630#M26743</link>
      <description>&lt;P&gt;Hello All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a file of weekly data snapshots. The file has a snapshot date stamp&lt;/P&gt;&lt;P&gt;I have a measure:&lt;/P&gt;&lt;P&gt;headcount_Max_Wk = CALCULATE(DISTINCTCOUNT(SNAP_DWH_RES_RESOURCE[resource_key]),LASTDATE(SNAP_DWH_RES_RESOURCE[snaphot_stamp]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea is i get a distinct count based on the latest date. When you create a bar chart and show the data by business area and year/month it correctly shows the headcount... and i can see its taking the last date for the month and giving the correct distinct headount&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However on a second visual, where the bar chart is showing job role and year/month it doesnt work correctly... its overcounting this seems to be because some people have changed their job from 1 week to another, in the same month. As you can see below Name_2 and Name_3 are examples... how do i change my measure to ignore the 1st October row of data for each?&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;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 15:00:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1433630#M26743</guid>
      <dc:creator>andybamber</dc:creator>
      <dc:date>2020-10-14T15:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1434541#M26775</link>
      <description>&lt;P&gt;For each Employee and Month Name you want to find the latest Day of the month. Once you have that you can then lookup the Job role for that user for that date.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you need to do this in DAX or is Power Query an option too?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 01:36:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1434541#M26775</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-10-15T01:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1434894#M26786</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255456" data-lia-user-login="andybamber" class="lia-mention lia-mention-user"&gt;andybamber&lt;/a&gt;&amp;nbsp; Hi , You can use this formula . I took employee Column to get distinct count by month .&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;headcount_Max_Wk = CALCULATE(&lt;STRONG&gt;DISTINCTCOUNT(Sheet1[Employee])&lt;/STRONG&gt;,LASTDATE(Sheet1[SnapShot Date Stamp]))&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Oct 2020 04:31:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1434894#M26786</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-15T04:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435014#M26793</link>
      <description>&lt;P&gt;Hi There!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dax would be the preferred option, but i'm open to a power query solution..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 06:17:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435014#M26793</guid>
      <dc:creator>andybamber</dc:creator>
      <dc:date>2020-10-15T06:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435058#M26798</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; thanks for your reply... Apart from using Employee field in stead of resource Key (which is effectively the unique employee ID) your measure is probably the same as mine...&amp;nbsp; i think maybe you require some additional information... so the Month is being pulled into the visual from the linked Date Dimension table, the join is from snapshot date stamp to the data.. does that help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 06:41:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435058#M26798</guid>
      <dc:creator>andybamber</dc:creator>
      <dc:date>2020-10-15T06:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435116#M26801</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255456" data-lia-user-login="andybamber" class="lia-mention lia-mention-user"&gt;andybamber&lt;/a&gt;&amp;nbsp;: It Will Work for that as well . you have to define BI Directional Relationship in between datetable and&amp;nbsp; your master table then it will work fine for you .&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 07:24:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435116#M26801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-15T07:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435180#M26805</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;its currently set as both....&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 07:36:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435180#M26805</guid>
      <dc:creator>andybamber</dc:creator>
      <dc:date>2020-10-15T07:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435191#M26806</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="255456" data-lia-user-login="andybamber" class="lia-mention lia-mention-user"&gt;andybamber&lt;/a&gt;&amp;nbsp; Can you please sample file with relevant data and kindly mask other columns.It will be great .&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 07:41:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1435191#M26806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-10-15T07:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1436063#M26832</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; I have a file for you, how do i send as it wont let me attach a PBIX into a message....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 12:51:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1436063#M26832</guid>
      <dc:creator>andybamber</dc:creator>
      <dc:date>2020-10-15T12:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1436082#M26833</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;A title="PBIX eg" href="https://www.dropbox.com/s/pvknpdf82o70y72/PBIX_example.pbix?dl=0" target="_self"&gt;PBIX ex&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 12:57:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1436082#M26833</guid>
      <dc:creator>andybamber</dc:creator>
      <dc:date>2020-10-15T12:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dax Measure - Lastdate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1437540#M26877</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; i should also have said regarding the PBIX that the right hand bar chart is correctm showing 8 for both months, but its the one on the left with the actual role where its not counting correctly... thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 05:32:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dax-Measure-Lastdate/m-p/1437540#M26877</guid>
      <dc:creator>andybamber</dc:creator>
      <dc:date>2020-10-16T05:32:55Z</dc:date>
    </item>
  </channel>
</rss>

