<?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: Struggling with the filter measure! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2822067#M89596</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Filtering a full table under CALCULATE(TABLE) will get you into troubles sooner than you might think.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;CALCULATETABLE (
        VALUES ( 'SC011000'[SC01037] ),
        FILTER (
            SC011000,
            VALUE ( RIGHT ( SC011000[SC01037], LEN ( 'SC011000'[SC01037] ) - 1 ) ) &amp;lt; 998
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;but rather:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;CALCULATETABLE (
    VALUES ( 'SC011000'[SC01037] ),
    KEEPFILTERS(
        VALUE ( RIGHT ( SC011000[SC01037], LEN ( 'SC011000'[SC01037] ) - 1 ) ) &amp;lt; 998
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;By the way... &lt;EM&gt;Performing string extraction like the above is totally suboptimal.&lt;/EM&gt; It'll tremendously slow down DAX. What should have been done instead is the extraction of the interesting portion in Power Query into its own column, then hiding the column from users' view and performing the filter on the column itself.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2022 08:21:54 GMT</pubDate>
    <dc:creator>daXtreme</dc:creator>
    <dc:date>2022-10-06T08:21:54Z</dc:date>
    <item>
      <title>Struggling with the filter measure!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2808214#M88722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to create some measures that will filter different things.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I want to filter a column containing product group.&lt;BR /&gt;I want the measure to display or give me all product groups that is less than P998 ( in other words &amp;lt;P998).&lt;BR /&gt;The product groups are all in the SC01037 column.&lt;/P&gt;&lt;P&gt;My measure looks like this, and there's obviously something I am doing wrong.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Secondly.&lt;BR /&gt;Is it possible to filter on all dates before today (as today date will change as the days goes by obviously?&lt;/P&gt;&lt;P&gt;I have a column with the material reservation date and want to filter: &amp;lt;TODAY.&lt;/P&gt;&lt;P&gt;How do I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thirdly,&lt;/P&gt;&lt;P&gt;How do I filter the following: "&amp;lt;&amp;gt; DATE(1900,01,01)".&lt;BR /&gt;The column I want to filter is "Old date" and I want to display all dates before and after 1900-01-01.&lt;BR /&gt;How do I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly,&lt;BR /&gt;I have 2 columns Planning date (MP92028) and Delivery date (MP92002) and want to filter so the measure returns to me only dates the dates where the planning is greater/after the delivery date. In other words:&amp;nbsp;MP921000[MP92028] &amp;gt; MP921000[MP92002].&lt;/P&gt;&lt;P&gt;How do I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!!&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 09:32:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2808214#M88722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-30T09:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with the filter measure!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2809966#M88940</link>
      <description>&lt;P&gt;Before using any DAX function you should get familiar with how it works and what the correct syntax is. Here's the description with some good interactive examples of &lt;STRONG&gt;FILTER&lt;/STRONG&gt;: &lt;A href="http://dax.guide/filter" target="_blank"&gt;http://dax.guide/filter&lt;/A&gt;. I'd also look at this:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/filtering-tables/" target="_blank"&gt;Filtering Tables in DAX - SQLBI&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Obviously, you're not using the function in the above code correctly, so please take some time to read the articles I've pointed out. Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 11:16:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2809966#M88940</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-10-01T11:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with the filter measure!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2812992#M89080</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The following ones are the answers for your questions:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;1. Display or give me all product groups that is less than P998 ( in other words &amp;lt;P998)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A: For the &lt;STRONG&gt;Text&lt;/STRONG&gt; type field [SC01037], we &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;can't&lt;/FONT&gt; &lt;/STRONG&gt;compare directly using the greater than or less than signs. Before we can do that, we need to do some conversions and you can refer to the following formula to update your metric values.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Upd LP01 Brister i plockveckan =
VAR _selsc37 =
    SELECTEDVALUE ( SC011000[SC01037] )
VAR _tab =
    CALCULATETABLE (
        VALUES ( 'SC011000'[SC01037] ),
        FILTER (
            SC011000,
            VALUE ( RIGHT ( SC011000[SC01037], LEN ( 'SC011000'[SC01037] ) - 1 ) ) &amp;lt; 998
        )
    )
RETURN
    IF ( _selsc37 IN _tab, 1, 0 )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;2. Have a column with the material reservation date and want to filter: &amp;lt;TODAY&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; FILTER('Tablename','Tablename'[material reservation date] &amp;lt; TODAY ())&lt;/LI-CODE&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;3.&amp;nbsp;&amp;nbsp;Filter is "Old date" and I want to display all dates before and after 1900-01-01&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FILTER( 'Tablename','Tablename'[Old date]&amp;lt;&amp;gt; DATE(1900,01,01))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;4. Return&amp;nbsp;only dates the dates where the planning is greater/after the delivery date&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FILTER( 'MP921000',MP921000[MP92028] &amp;gt; MP921000[MP92002])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide more&amp;nbsp;&lt;STRONG&gt;raw data&lt;/STRONG&gt;&amp;nbsp;in your tables&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&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;FONT color="#FF0000"&gt;&amp;nbsp;&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>Mon, 03 Oct 2022 06:18:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2812992#M89080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T06:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with the filter measure!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2813465#M89115</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Many, many thanks for your reply.&lt;/P&gt;&lt;P&gt;I get this for this measure. What does it mean by '&lt;EM&gt;The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value&lt;/EM&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;The table is MP921000 and the column is MP92010. It's from the same table....Hmmm....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With kind regards,&lt;BR /&gt;C&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 09:02:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2813465#M89115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T09:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with the filter measure!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2813524#M89119</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;What you are trying to create is a measure, right? If yes, the &lt;A href="https://learn.microsoft.com/en-us/dax/filter-function-dax" target="_self"&gt;&lt;STRONG&gt;Filter&lt;/STRONG&gt;&lt;/A&gt; function will return a table not a scalar&amp;nbsp;value. Hence it will get that error message if you're creating a measure. You can create a &lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-calculated-tables" target="_self"&gt;calculated table&lt;/A&gt; as below screenshot using the formula:&amp;nbsp;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;EM&gt;&lt;SPAN&gt;Table&amp;nbsp; = &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;( 'MP921000', 'MP921000'[MP92010]&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1900&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the above one is not your expected result, please provide more&amp;nbsp;&lt;STRONG&gt;raw data&lt;/STRONG&gt;&amp;nbsp;in your table&amp;nbsp;&lt;STRONG&gt;MP921000&amp;nbsp;&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;FONT color="#FF0000"&gt;&amp;nbsp;&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>Mon, 03 Oct 2022 09:31:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2813524#M89119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T09:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with the filter measure!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2814169#M89163</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;I need to be a super user to attach files here but I will upload some example data here. Give me a few minutes.&lt;/P&gt;&lt;P&gt;With kind regards,&lt;BR /&gt;/C&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 13:48:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2814169#M89163</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T13:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with the filter measure!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2814186#M89166</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here some sample data from Table MP921000, from column MP92010.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;MP92010&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1900-01-01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-09-26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021-06-30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2021-11-26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-02-17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-04-26&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-05-20&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-08-25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-10-10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-10-13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-11-02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-12-27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2023-12-16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-04-25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-06-20&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you want me to add or alter the information in any way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With kind regards,&lt;/P&gt;&lt;P&gt;/C&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 13:56:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2814186#M89166</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-03T13:56:21Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with the filter measure!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2821368#M89573</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created a sample pbix file(&lt;STRONG&gt;see attachment&lt;/STRONG&gt;) for you, please check whether that is what you want.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Method1:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1. Create a &lt;STRONG&gt;measure&lt;/STRONG&gt; as below&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag = IF(SELECTEDVALUE(MP921000[MP92010])&amp;lt;&amp;gt;DATE(1900,1,1),1,0)&lt;/LI-CODE&gt;
&lt;P&gt;2. Create a table visual and apply a visual-level filter with the condition(&lt;STRONG&gt;&lt;EM&gt;Flag is 1&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Method2: &lt;/STRONG&gt;Create a &lt;A href="https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-calculated-tables" target="_self" rel="nofollow noopener noreferrer"&gt;calculated table&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt; using the below formula&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = FILTER( 'MP921000', 'MP921000'[MP92010]&amp;lt;&amp;gt;DATE(1900,1,1))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 02:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2821368#M89573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-06T02:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Struggling with the filter measure!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2822067#M89596</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Filtering a full table under CALCULATE(TABLE) will get you into troubles sooner than you might think.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;CALCULATETABLE (
        VALUES ( 'SC011000'[SC01037] ),
        FILTER (
            SC011000,
            VALUE ( RIGHT ( SC011000[SC01037], LEN ( 'SC011000'[SC01037] ) - 1 ) ) &amp;lt; 998
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;but rather:&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;CALCULATETABLE (
    VALUES ( 'SC011000'[SC01037] ),
    KEEPFILTERS(
        VALUE ( RIGHT ( SC011000[SC01037], LEN ( 'SC011000'[SC01037] ) - 1 ) ) &amp;lt; 998
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;By the way... &lt;EM&gt;Performing string extraction like the above is totally suboptimal.&lt;/EM&gt; It'll tremendously slow down DAX. What should have been done instead is the extraction of the interesting portion in Power Query into its own column, then hiding the column from users' view and performing the filter on the column itself.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 08:21:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Struggling-with-the-filter-measure/m-p/2822067#M89596</guid>
      <dc:creator>daXtreme</dc:creator>
      <dc:date>2022-10-06T08:21:54Z</dc:date>
    </item>
  </channel>
</rss>

