<?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 Filter content based on two columns in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3672873#M142496</link>
    <description>&lt;P&gt;I've got a directconnection to a source in Power BI and I want to filter upon two things.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in one table I have Accounts and in the other table I have Tag Name &amp;amp; Tag status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In a second matrix on the same page, I want to filter out all accounts which have Tag Name "Tag 1" and Tag Status "Active"&amp;nbsp;&amp;nbsp;&lt;BR /&gt;How can I achieve that? as I'm trying to do this but I'm failing to do so.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 12:07:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-01T12:07:26Z</dc:date>
    <item>
      <title>Filter content based on two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3672873#M142496</link>
      <description>&lt;P&gt;I've got a directconnection to a source in Power BI and I want to filter upon two things.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so in one table I have Accounts and in the other table I have Tag Name &amp;amp; Tag status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In a second matrix on the same page, I want to filter out all accounts which have Tag Name "Tag 1" and Tag Status "Active"&amp;nbsp;&amp;nbsp;&lt;BR /&gt;How can I achieve that? as I'm trying to do this but I'm failing to do so.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 12:07:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3672873#M142496</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-01T12:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filter content based on two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3674258#M142598</link>
      <description>&lt;P&gt;Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 01:12:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3674258#M142598</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-02-02T01:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Filter content based on two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3674466#M142611</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created some data:&lt;/P&gt;
&lt;P&gt;Table1：&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Table2：&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF(
    MAX('Table1'[Tag Name])="Tag1"&amp;amp;&amp;amp;MAX('Table1'[Tag Status])="Active",BLANK(),MAX('Table1'[Tag Status]))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2. Select [Account – turn off “Show” items with no data.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3. Result:&lt;/P&gt;
&lt;P&gt;Note: This fits a row of data all blank(), if one of them contains data, the entire row will not be filtered.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If it doesn't meet your desired outcome, can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 02:40:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3674466#M142611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-02T02:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filter content based on two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3707108#M144204</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sorry for my late reply but the data is a little bit different .. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Basically it is a table where Tag name only exists for certain actions when they are active and do not exist when not active. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;So I want to filter out all accountkey where Tag1 doesn't exist&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 07:34:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3707108#M144204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-19T07:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Filter content based on two columns</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3719035#M144799</link>
      <description>&lt;P&gt;Hi&amp;nbsp; Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are the steps you can follow：&lt;/P&gt;
&lt;P&gt;1. Create measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag =
var _select=
SELECTCOLUMNS(FILTER(ALL('Table'),'Table'[Account Key]=MAX('Table'[Account Key])),"Tag",[Tag Name])
return
IF(
    "Tag1" in _select,MAX('Table'[Tag Status]),BLANK())&lt;/LI-CODE&gt;
&lt;P&gt;2. Result:&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;Best Regards,&lt;/P&gt;
&lt;P&gt;Liu Yang&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;EM&gt;Accept it as the solution&lt;/EM&gt; to help the other members find it more quickly&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 07:06:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-content-based-on-two-columns/m-p/3719035#M144799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-23T07:06:03Z</dc:date>
    </item>
  </channel>
</rss>

