<?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: SELECTEDMEASURE should filter the table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDMEASURE-should-filter-the-table/m-p/2795223#M87812</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simple sample, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _selected =
    SELECTEDVALUE ( 'Table'[YES OR NO] )
RETURN
    IF ( _selected = "Not Trained", 0, IF ( _selected = "Trained", [is trained] ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide your pbix file without privacy inforamtion .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Sep 2022 06:48:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-26T06:48:51Z</dc:date>
    <item>
      <title>SELECTEDMEASURE should filter the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDMEASURE-should-filter-the-table/m-p/2789781#M87551</link>
      <description>&lt;P&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;I have 2 measures, [Trained] and [Not Trained] for each active employee in a selected year(from a slicer)&lt;BR /&gt;&lt;BR /&gt;If I select the 4 on the left which stands for not trained, I want the table to show only the rows where [Is Trained] = 0&lt;BR /&gt;If I selected trained, the table should show the values where&amp;nbsp;[Is Trained] = 1&lt;BR /&gt;However, that does not affect the table at all. I want the table to be dynamically filtered based on my slicer selection.&lt;BR /&gt;&lt;BR /&gt;I tried functions such as SELECTEDMEASURE( ),&amp;nbsp;SELECTEDMEASURENAME( ), ISSELECTEDMEASURE( ),&lt;BR /&gt;SELECTEDMEASUREFORMATSTRING( ) but neither of those worked.&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;I added this other measure in order to filter for TRUE values but it didn't work.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I would appretiate your help/suggestions.&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 12:17:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDMEASURE-should-filter-the-table/m-p/2789781#M87551</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-23T12:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTEDMEASURE should filter the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDMEASURE-should-filter-the-table/m-p/2790766#M87614</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , use calculation group for that &lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/" target="_blank"&gt;https://www.sqlbi.com/blog/marco/2020/07/15/creating-calculation-groups-in-power-bi-desktop/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Calculation Groups- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display : &lt;A href="https://youtu.be/qMNv67P8Go0" target="_blank"&gt;https://youtu.be/qMNv67P8Go0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 02:34:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDMEASURE-should-filter-the-table/m-p/2790766#M87614</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-09-24T02:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTEDMEASURE should filter the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDMEASURE-should-filter-the-table/m-p/2795223#M87812</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I have created a simple sample, please refer to it to see if it helps you.&lt;/P&gt;
&lt;P&gt;Create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _selected =
    SELECTEDVALUE ( 'Table'[YES OR NO] )
RETURN
    IF ( _selected = "Not Trained", 0, IF ( _selected = "Trained", [is trained] ) )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If I have misunderstood your meaning, please provide your pbix file without privacy inforamtion .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ Polly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 06:48:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDMEASURE-should-filter-the-table/m-p/2795223#M87812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T06:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: SELECTEDMEASURE should filter the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDMEASURE-should-filter-the-table/m-p/2795723#M87842</link>
      <description>&lt;P&gt;This is not the exact scenario.&lt;BR /&gt;&lt;BR /&gt;I am sharing a sample file to illustrate my problem and hopefully resolve it with your help.&lt;BR /&gt;&lt;BR /&gt;I want to filter active employees based on my YEAR selection from a slicer. YEAR is a field on my date table named DATA TAB.&lt;BR /&gt;Active employes should have started working before or on the year selected, and termination date should either be on the year selected or after that year, or blank if the employee is still working.&lt;BR /&gt;&lt;BR /&gt;After I manage to consider only active employees I thought to create a measure with trained employees in a selected year. I named the measure [Trained]&lt;BR /&gt;Not trained is the difference from total employees to [trained] employees.&lt;BR /&gt;&lt;BR /&gt;I want the pie chart that shows distinct employees trained, and those not trained in a selected year, to filter the table as well.&lt;BR /&gt;&lt;BR /&gt;Suppose I want to see not trained employees and I want this to be filtered in the table from my pie chart selection.&lt;BR /&gt;I hope I was clear.&lt;BR /&gt;&lt;A href="https://we.tl/t-D5ZK2kS3Rg" target="_blank"&gt;https://we.tl/t-D5ZK2kS3Rg&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Here is the file vie wetransfer.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2022 08:42:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SELECTEDMEASURE-should-filter-the-table/m-p/2795723#M87842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-26T08:42:06Z</dc:date>
    </item>
  </channel>
</rss>

