<?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: new measure to filter different purpose but same name in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121669#M48629</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307035" data-lia-user-login="xzeng2" class="lia-mention lia-mention-user"&gt;xzeng2&lt;/a&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;Step1. Select [DateTime] at Filed pannel&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Step2. Go to the "Column" tab on the ribbon&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Step3. Change the format whichever you like&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Please mark this as solution if this helped you. appretiate Kudo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Oct 2021 13:30:09 GMT</pubDate>
    <dc:creator>colacan</dc:creator>
    <dc:date>2021-10-07T13:30:09Z</dc:date>
    <item>
      <title>new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2112507#M48352</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; suffering to solve below.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;there are data from an online server dataset, which cannot process the data by power query locally. data like below, need to process as below:&lt;/P&gt;&lt;P&gt;1, remove old day record and keep most current date records only, red highlighted&lt;/P&gt;&lt;P&gt;2, need to remove the duplicate records in same date yellow and orange highlighted&lt;/P&gt;&lt;P&gt;3, compare the name and purpose, if same name with both "IN" and "OUT" purpose, then need to filter out them&lt;/P&gt;&lt;P&gt;4,final result just keep names with purpose "IN" but without purpose "OUT", blue highlighted.&lt;/P&gt;&lt;P&gt;5,ignor name only with purpose "OUT", green highlighted.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;1, already use datediff to filter out old day record.&lt;/P&gt;&lt;P&gt;2,&amp;nbsp;can use sort by date and time and buffer to remove the duplicate items if can process with power query, but how can i process this by DAX code?&lt;/P&gt;&lt;P&gt;3, how to compare those with same name but different purpose by DAX?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate kindly help with solution!&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 15:16:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2112507#M48352</guid>
      <dc:creator>xzeng2</dc:creator>
      <dc:date>2021-10-03T15:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2112654#M48357</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307035" data-lia-user-login="xzeng2" class="lia-mention lia-mention-user"&gt;xzeng2&lt;/a&gt;&amp;nbsp; Hi,&lt;/P&gt;&lt;P&gt;Since you are filtering Date, you need to make calculate column of "Date" in your talbe without time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Date = Date(year(YourTable[DateTime]),month(YourTable[DateTime]),day(YourTable[DateTime]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Then, create a table using below code:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;TargetTable = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; VAR LastestDate =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MAX( YourTable[Date] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; VAR NamesWoOUT =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER( YourTable, YourTable[Purpose] = "IN" ),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YourTable[Name]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; VAR LastDateTable =&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FILTER( YourTable, YourTable[Date] = LastestDate )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; VAR Finaltable =&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ADDCOLUMNS(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SUMMARIZE(&lt;/SPAN&gt;&lt;SPAN&gt;LastDateTable,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;YourTable[Name],&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;YourTable[Purpose],&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;YourTable[Date]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "Item", CALCULATE( MIN( YourTable[Item] ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; YourTable[Name] IN NamesWoOUT&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; RETURN&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Finaltable&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Maybe this is not complete table satisfiying your condition because I am not clear with bleow line&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"compare the name and purpose, if same name with both "IN" and "OUT" purpose, then need to filter out them"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Do you need to delete all recodes of which the name with both "IN" &amp;amp; "OUT" or just keep recode with "IN"?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Oct 2021 21:11:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2112654#M48357</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-10-03T21:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2112768#M48360</link>
      <description>&lt;P&gt;Hi Colacan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you for your propose, just filter out not delete the records with both "IN" and "OUT".&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;also could you please help to check if can filter out that one without "IN" but with "OUT" record?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Zeng&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 02:22:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2112768#M48360</guid>
      <dc:creator>xzeng2</dc:creator>
      <dc:date>2021-10-04T02:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2114783#M48431</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307035" data-lia-user-login="xzeng2" class="lia-mention lia-mention-user"&gt;xzeng2&lt;/a&gt;&amp;nbsp; Hi, if you share the final table from the sample data above, it would be helpful to understand&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Oct 2021 20:06:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2114783#M48431</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-10-04T20:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2116438#M48487</link>
      <description>&lt;P&gt;Hi Colacan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;as per mentioned above, original sample data as below.&lt;/P&gt;&lt;P&gt;1, need to filter out item 1 since old date.&lt;/P&gt;&lt;P&gt;2, remove yellow highlighted (item 2,3,4,16,19,20,21,36 and 38) since duplicated input and remove the old one.&lt;/P&gt;&lt;P&gt;3, find out name with both "IN" and "OUT", make a filter to filter out those. (Item A-L)&lt;/P&gt;&lt;P&gt;4, list out with "IN" only (Item M,N,X,Y and Z)&lt;/P&gt;&lt;P&gt;5, list out with "OUT"only(item 39).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i met issue as below:&lt;/P&gt;&lt;P&gt;1, when convert date&amp;amp;time to date only, cannot recognize.&lt;/P&gt;&lt;P&gt;2, lastdatetable, mention refer to multiple columns error&lt;/P&gt;&lt;P&gt;3, final table, cannot recognize some of above measures&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;issue maybe due to the first date format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate again for you quick responds.&lt;/P&gt;&lt;P&gt;Zeng&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 14:13:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2116438#M48487</guid>
      <dc:creator>xzeng2</dc:creator>
      <dc:date>2021-10-05T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2118685#M48552</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307035" data-lia-user-login="xzeng2" class="lia-mention lia-mention-user"&gt;xzeng2&lt;/a&gt;&amp;nbsp;You are correct. it is not Date type but text.&amp;nbsp;It must be date type to solve your issue.&lt;/P&gt;&lt;P&gt;You may change the format from your source or edit it before you upload it using power query.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 09:52:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2118685#M48552</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-10-06T09:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121542#M48619</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307035" data-lia-user-login="xzeng2" class="lia-mention lia-mention-user"&gt;xzeng2&lt;/a&gt;&amp;nbsp; Hi, I couldn't understand:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;&amp;nbsp;just &lt;STRONG&gt;filter out&lt;/STRONG&gt; &lt;STRONG&gt;not delete&lt;/STRONG&gt; the records with both "IN" and "OUT"."&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Do you want see them (the records with both "IN" and "OUT") in the table or not?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:51:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121542#M48619</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-10-07T12:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121556#M48620</link>
      <description>&lt;P&gt;Hi Colacan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I made the date measure successfully, but the date format still the same, any idea how to solve?&lt;/P&gt;&lt;P&gt;&amp;nbsp; the data got from online forms data, cannot change the date format in the source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;appreciate!&lt;/P&gt;&lt;P&gt;zeng&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 12:57:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121556#M48620</guid>
      <dc:creator>xzeng2</dc:creator>
      <dc:date>2021-10-07T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121637#M48627</link>
      <description>&lt;P&gt;Hi Colacan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yes, still need to show the list of records with both "IN" and "OUT" in the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;zeng&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 13:20:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121637#M48627</guid>
      <dc:creator>xzeng2</dc:creator>
      <dc:date>2021-10-07T13:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121669#M48629</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307035" data-lia-user-login="xzeng2" class="lia-mention lia-mention-user"&gt;xzeng2&lt;/a&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;Step1. Select [DateTime] at Filed pannel&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Step2. Go to the "Column" tab on the ribbon&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Step3. Change the format whichever you like&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Please mark this as solution if this helped you. appretiate Kudo.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 13:30:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121669#M48629</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-10-07T13:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121723#M48630</link>
      <description>&lt;P&gt;hi Colacan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; i have changed the format of the DATE and lastest date, but for the lastdatetable measure still showing below error.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 13:38:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121723#M48630</guid>
      <dc:creator>xzeng2</dc:creator>
      <dc:date>2021-10-07T13:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121861#M48636</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307035" data-lia-user-login="xzeng2" class="lia-mention lia-mention-user"&gt;xzeng2&lt;/a&gt;&amp;nbsp;Hi,&lt;/P&gt;&lt;P&gt;the [Date] in your code means a table consists of all Dates from the Sheet1 table. hence you are comapring a whole dates with [lastes date] which power bi can not understand.&lt;/P&gt;&lt;P&gt;This is a concept related to row context and filter context which is not easy to catch.&lt;/P&gt;&lt;P&gt;if you are going to use this masure under unique [date] filter context - which means you will use this measure in a table which contains date column, you can change the [Date] to Max[Date].&lt;/P&gt;&lt;P&gt;Filter(sheet1, max([date]) = [lastest date]&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please mark this as solution if this helped you. appretiate Kudo.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 14:30:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2121861#M48636</guid>
      <dc:creator>colacan</dc:creator>
      <dc:date>2021-10-07T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: new measure to filter different purpose but same name</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2145199#M49353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307035" data-lia-user-login="xzeng2" class="lia-mention lia-mention-user"&gt;xzeng2&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use filters like so:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Filter =
VAR NameCount =
    CALCULATE (
        COUNT ( 'Table'[Name] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Name] = MAX ( 'Table'[Name] ) )
    )
VAR PurposeCount =
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Purpose] ),
        FILTER ( ALLSELECTED ( 'Table' ), 'Table'[Name] = MAX ( 'Table'[Name] ) )
    )
RETURN
    IF ( NameCount = 1 &amp;amp;&amp;amp; PurposeCount = 1 &amp;amp;&amp;amp; MAX ( 'Table'[Purpose] ) = "IN", 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, what the meaning of "&lt;SPAN&gt;ignore name only with purpose "OUT", green highlighted&lt;/SPAN&gt;"? Do you mean all rules above won't apply on these records?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more details, please check 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;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 09:06:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/new-measure-to-filter-different-purpose-but-same-name/m-p/2145199#M49353</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2021-10-20T09:06:59Z</dc:date>
    </item>
  </channel>
</rss>

