<?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 table based on multiple column values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-based-on-multiple-column-values/m-p/1518985#M29577</link>
    <description>&lt;P&gt;Hi, I have list of projects and variuos business units (Cargo, Link, Infra). I need the slicer to be able to filter the projects table based on those column values. Here's what I have now:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the slicer I created an extra table only with the list of business units and thought will go with a measure like this:&lt;/P&gt;&lt;P&gt;Selected Metric =&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;SELECTEDVALUE('BusinessUnit'[BU]) = "LINK", CALCULATE('Portfolio status', 'Portfolio status'[LINK]="Yes"),&lt;BR /&gt;SELECTEDVALUE('BusinessUnit'[BU]) = "CARGO", CALCULATE('Portfolio status', 'Portfolio status'[CARGO]="Yes"),&lt;BR /&gt;SELECTEDVALUE('BusinessUnit'[BU]) = "INFRA",CALCULATE('Portfolio status', 'Portfolio status'[INFRA]="Yes"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it does not work this way as getting "the expression refers to multiple columns. multiple columns cannot be converted to a scalar value". Could you advise on how I can get the desired result ?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 13:47:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-26T13:47:01Z</dc:date>
    <item>
      <title>Filter table based on multiple column values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-based-on-multiple-column-values/m-p/1518985#M29577</link>
      <description>&lt;P&gt;Hi, I have list of projects and variuos business units (Cargo, Link, Infra). I need the slicer to be able to filter the projects table based on those column values. Here's what I have now:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the slicer I created an extra table only with the list of business units and thought will go with a measure like this:&lt;/P&gt;&lt;P&gt;Selected Metric =&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;SELECTEDVALUE('BusinessUnit'[BU]) = "LINK", CALCULATE('Portfolio status', 'Portfolio status'[LINK]="Yes"),&lt;BR /&gt;SELECTEDVALUE('BusinessUnit'[BU]) = "CARGO", CALCULATE('Portfolio status', 'Portfolio status'[CARGO]="Yes"),&lt;BR /&gt;SELECTEDVALUE('BusinessUnit'[BU]) = "INFRA",CALCULATE('Portfolio status', 'Portfolio status'[INFRA]="Yes"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it does not work this way as getting "the expression refers to multiple columns. multiple columns cannot be converted to a scalar value". Could you advise on how I can get the desired result ?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 13:47:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-based-on-multiple-column-values/m-p/1518985#M29577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-26T13:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table based on multiple column values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-based-on-multiple-column-values/m-p/1519069#M29581</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , no measure selected in calculate. Used countrows for example &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Selected Metric =&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;SELECTEDVALUE('BusinessUnit'[BU]) = "LINK", CALCULATE(&lt;STRONG&gt;countrows('Portfolio status')&lt;/STRONG&gt;, 'Portfolio status'[LINK]="Yes"),&lt;BR /&gt;SELECTEDVALUE('BusinessUnit'[BU]) = "CARGO", CALCULATE(countrows('Portfolio status'), 'Portfolio status'[CARGO]="Yes"),&lt;BR /&gt;SELECTEDVALUE('BusinessUnit'[BU]) = "INFRA",CALCULATE(countrows('Portfolio status'), 'Portfolio status'[INFRA]="Yes")&lt;/P&gt;
&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 14:34:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-based-on-multiple-column-values/m-p/1519069#M29581</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-11-26T14:34:44Z</dc:date>
    </item>
  </channel>
</rss>

