<?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 Measure for Filtering on different criteria within the table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2978715#M99799</link>
    <description>&lt;P&gt;I have a Tasks table with this data&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I need to show data in such way with filters&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Notice that I don't want to show &lt;EM&gt;Release&lt;/EM&gt; Areas in the filters on the report screen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I need a measure that when we select Area, it should show Hrs of the person for the respective related Release Area (for e.g. &lt;EM&gt;Release\Area 1&lt;/EM&gt; in the above shown example)&lt;/P&gt;&lt;P&gt;I have written a measure, but it's showing hrs for all records, instead of only one , like this below -&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure is like this -&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;Here is &lt;A href="https://drive.google.com/file/d/1HUYKt3YrFGWNjWrPKIh0u2sKF_pEjSZN/view?usp=sharing" target="_self"&gt;the Power BI File&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2022 10:24:45 GMT</pubDate>
    <dc:creator>yogeshk77</dc:creator>
    <dc:date>2022-12-20T10:24:45Z</dc:date>
    <item>
      <title>Measure for Filtering on different criteria within the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2978715#M99799</link>
      <description>&lt;P&gt;I have a Tasks table with this data&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I need to show data in such way with filters&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Notice that I don't want to show &lt;EM&gt;Release&lt;/EM&gt; Areas in the filters on the report screen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I need a measure that when we select Area, it should show Hrs of the person for the respective related Release Area (for e.g. &lt;EM&gt;Release\Area 1&lt;/EM&gt; in the above shown example)&lt;/P&gt;&lt;P&gt;I have written a measure, but it's showing hrs for all records, instead of only one , like this below -&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure is like this -&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;Here is &lt;A href="https://drive.google.com/file/d/1HUYKt3YrFGWNjWrPKIh0u2sKF_pEjSZN/view?usp=sharing" target="_self"&gt;the Power BI File&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 10:24:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2978715#M99799</guid>
      <dc:creator>yogeshk77</dc:creator>
      <dc:date>2022-12-20T10:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Filtering on different criteria within the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2978950#M99816</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Release Hrs =
VAR AreaFilter =
	TREATAS(
		SELECTCOLUMNS(
			VALUES( 'Area Master'[Area Path] ),
			"@release", "Release\" &amp;amp; 'Area Master'[Area Path]
		),
		'Area Master'[Area Path]
	)
VAR IterationFilter =
	VALUES( 'Iteration Master'[Iteration Path] )
RETURN
	CALCULATE(
		SUM( 'Tasks'[Hrs] ),
		AreaFilter,
		IterationFilter
	)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Dec 2022 12:15:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2978950#M99816</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-12-20T12:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Filtering on different criteria within the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2980659#M99911</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;Sorry, I missed adding a Word "Core\" to the Area path.&lt;BR /&gt;When I have that, this measure is not working anymore.&lt;BR /&gt;Please take a look &lt;A href="https://drive.google.com/file/d/12ujfuyY3-ncNKuAfJoahwIMEybG47KbR/view?usp=sharing" target="_blank" rel="noopener"&gt;at this PBI file&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 04:23:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2980659#M99911</guid>
      <dc:creator>yogeshk77</dc:creator>
      <dc:date>2022-12-21T04:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Filtering on different criteria within the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2981979#M99980</link>
      <description>&lt;P&gt;I would use Power Query to split out the base area as a new column on the area master table and use that on the slicer. Then amend the measure to be&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Release Hrs = 
VAR AreaFilter = TREATAS( SELECTCOLUMNS( VALUES( 'Area Master'[Area] ), "@release", "Core\Release\" &amp;amp; 'Area Master'[Area] ), 'Area Master'[Area Path] ) 
VAR IterationFilter = VALUES( 'Iteration Master'[Iteration Path] ) 
RETURN CALCULATE( SUM( 'Tasks'[Hrs] ), AreaFilter, IterationFilter ) &lt;/LI-CODE&gt;
&lt;P&gt;See the attached file.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 13:55:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2981979#M99980</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-12-21T13:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Measure for Filtering on different criteria within the table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2983475#M100056</link>
      <description>&lt;P&gt;Got it.. Thanks a lot !&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 06:20:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-for-Filtering-on-different-criteria-within-the-table/m-p/2983475#M100056</guid>
      <dc:creator>yogeshk77</dc:creator>
      <dc:date>2022-12-22T06:20:29Z</dc:date>
    </item>
  </channel>
</rss>

