<?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: Filter with OR behavior/dynamic measure based on slicer in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-OR-behavior-dynamic-measure-based-on-slicer/m-p/4383381#M173995</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Metric Filter Measure = &lt;BR /&gt;IF(&lt;BR /&gt;SELECTEDVALUE('Table'[Status]) = "B", &lt;BR /&gt;1, &lt;BR /&gt;IF(&lt;BR /&gt;'Table'[Metric1] &amp;gt;= MIN('Slicers'[Metric1 Min]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Metric1] &amp;lt;= MAX('Slicers'[Metric1 Max]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Metric2] &amp;gt;= MIN('Slicers'[Metric2 Min]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Metric2] &amp;lt;= MAX('Slicers'[Metric2 Max]), &lt;BR /&gt;1, &lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add the new measure Metric Filter Measure to the Filters pane of your table visual.&lt;/LI&gt;
&lt;LI&gt;Set the filter condition to show only rows where the measure is equal to 1 (i.e., rows that meet the slicer criteria for Status A or that have Status = B).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2025 02:59:02 GMT</pubDate>
    <dc:creator>Shravan133</dc:creator>
    <dc:date>2025-01-28T02:59:02Z</dc:date>
    <item>
      <title>Filter with OR behavior/dynamic measure based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-OR-behavior-dynamic-measure-based-on-slicer/m-p/4383196#M173984</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple table visual as illustrated&amp;nbsp;below. The goal of this table is to show which Codes meet the criteria defined in the three slicers shows on the same page (Metric1 and Metric2 are Between slicers, Status is a simple Dropdown)&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Code&lt;/TD&gt;&lt;TD&gt;Metric1&lt;/TD&gt;&lt;TD&gt;Metric2&lt;/TD&gt;&lt;TD&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD&gt;.6&lt;/TD&gt;&lt;TD&gt;500&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Blue&lt;/TD&gt;&lt;TD&gt;.4&lt;/TD&gt;&lt;TD&gt;6000&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue I am running into is when I change the Metric1 or Metric 2 slicers to anything that doesn't include 0 in the range, everything that has a Status of B is filtered out of the table visual.&lt;BR /&gt;&lt;BR /&gt;I'm not sure how a solution would be crafted, but the ideal output table keeps all records with Status B, regardless of what ranges the Metric slicers are adjusted to and only adjusts the records for Status A.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 22:00:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-OR-behavior-dynamic-measure-based-on-slicer/m-p/4383196#M173984</guid>
      <dc:creator>palchaw</dc:creator>
      <dc:date>2025-01-27T22:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Filter with OR behavior/dynamic measure based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-OR-behavior-dynamic-measure-based-on-slicer/m-p/4383381#M173995</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Metric Filter Measure = &lt;BR /&gt;IF(&lt;BR /&gt;SELECTEDVALUE('Table'[Status]) = "B", &lt;BR /&gt;1, &lt;BR /&gt;IF(&lt;BR /&gt;'Table'[Metric1] &amp;gt;= MIN('Slicers'[Metric1 Min]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Metric1] &amp;lt;= MAX('Slicers'[Metric1 Max]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Metric2] &amp;gt;= MIN('Slicers'[Metric2 Min]) &amp;amp;&amp;amp;&lt;BR /&gt;'Table'[Metric2] &amp;lt;= MAX('Slicers'[Metric2 Max]), &lt;BR /&gt;1, &lt;BR /&gt;0&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add the new measure Metric Filter Measure to the Filters pane of your table visual.&lt;/LI&gt;
&lt;LI&gt;Set the filter condition to show only rows where the measure is equal to 1 (i.e., rows that meet the slicer criteria for Status A or that have Status = B).&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 02:59:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-OR-behavior-dynamic-measure-based-on-slicer/m-p/4383381#M173995</guid>
      <dc:creator>Shravan133</dc:creator>
      <dc:date>2025-01-28T02:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter with OR behavior/dynamic measure based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-OR-behavior-dynamic-measure-based-on-slicer/m-p/4385049#M174056</link>
      <description>&lt;P&gt;In your example, would this involve creating a separate table called "Slicers" that has two columns, one for each Metric, and two records, one with the Max and one with the Min? Is a relationship required between this new table and the main fact table?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Example:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Metric1&lt;/TD&gt;&lt;TD&gt;Metric2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;-10,000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;10,000&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 28 Jan 2025 19:22:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-OR-behavior-dynamic-measure-based-on-slicer/m-p/4385049#M174056</guid>
      <dc:creator>palchaw</dc:creator>
      <dc:date>2025-01-28T19:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Filter with OR behavior/dynamic measure based on slicer</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-OR-behavior-dynamic-measure-based-on-slicer/m-p/4385769#M174105</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="767335" data-lia-user-login="palchaw" class="lia-mention lia-mention-user"&gt;palchaw&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you provide some&amp;nbsp;&lt;STRONG&gt;raw data&lt;/STRONG&gt;&amp;nbsp;in your tables(&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&amp;nbsp;and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples? Later we can create a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;measure&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;as below to&amp;nbsp;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;replace&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;the original calculated column to get the expected result.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;It would be helpful to find out the solution. You can refer the following link to share the required info:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-provide-sample-data-in-the-Power-BI-Forum%2Fba-p%2F963216&amp;amp;data=05%7C01%7CClaire.Dong%40microsoft.com%7Cada9149bd91546a8432508dacd31ef9b%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638047911607737134%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=EJlYfclgtrjgAEYj9Uo1AauqxaQm3hlQsjJMo4zCY1M%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to provide sample data in the Power BI Forum&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 08:56:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-with-OR-behavior-dynamic-measure-based-on-slicer/m-p/4385769#M174105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-29T08:56:09Z</dc:date>
    </item>
  </channel>
</rss>

