<?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 by selected client's region in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-by-selected-client-s-region/m-p/806594#M5014</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following issue, which I have been trying to solve for a while. After months lurking the forums, I figured it was time to post my first question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data has orders, clients, and regions among other attributes. I have a matrix visual with salespeople in the rows and my order measures on the columns. I want to design a measure such that when a client is selected in another visual, the matrix visual cross-filters to show the amount of orders &lt;STRONG&gt;for that client's region&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been my approach so far, or variants:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CALCULATE (
    SUM ( Sales[Orders] );
    ALL ( 'Clients'[ClientCode] );
    VALUES ( 'Clients'[Region] )
)&lt;/PRE&gt;&lt;P&gt;I have tried changing the order of the calculate modifiers, I have tried using SELECTEDVALUE( ) and LOOKUPVALUE( ), but to no avail.&lt;/P&gt;&lt;P&gt;The requirement seems easy enough but filters must be overriding or something because I cannot wrap my head around the inner workings of this formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or pointers in the right direction would be extremely appreciated.&lt;/P&gt;&lt;P&gt;Thank you very much in advance and kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 07:57:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-01T07:57:07Z</dc:date>
    <item>
      <title>Filter table by selected client's region</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-by-selected-client-s-region/m-p/806594#M5014</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following issue, which I have been trying to solve for a while. After months lurking the forums, I figured it was time to post my first question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data has orders, clients, and regions among other attributes. I have a matrix visual with salespeople in the rows and my order measures on the columns. I want to design a measure such that when a client is selected in another visual, the matrix visual cross-filters to show the amount of orders &lt;STRONG&gt;for that client's region&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been my approach so far, or variants:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;CALCULATE (
    SUM ( Sales[Orders] );
    ALL ( 'Clients'[ClientCode] );
    VALUES ( 'Clients'[Region] )
)&lt;/PRE&gt;&lt;P&gt;I have tried changing the order of the calculate modifiers, I have tried using SELECTEDVALUE( ) and LOOKUPVALUE( ), but to no avail.&lt;/P&gt;&lt;P&gt;The requirement seems easy enough but filters must be overriding or something because I cannot wrap my head around the inner workings of this formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help or pointers in the right direction would be extremely appreciated.&lt;/P&gt;&lt;P&gt;Thank you very much in advance and kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 07:57:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-by-selected-client-s-region/m-p/806594#M5014</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-01T07:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table by selected client's region</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-by-selected-client-s-region/m-p/807759#M5059</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;Try removing filters from all 'Clients'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;CALCULATE (
    SUM ( Sales[Orders] );
    ALL ( 'Clients' );
    VALUES ( 'Clients'[Region] )
)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;IMG src="https://ip1.i.lithium.com/1232d707bb27fc4afa3b81cd0702c478b6f7aced/68747470733a2f2f7374617469632e6c6963646e2e636f6d2f736364732f636f6d6d6f6e2f752f696d616765732f6c6f676f732f6c696e6b6564696e2f6c6f676f5f6c696e6b6564696e5f39337832315f76322e706e67" border="0" alt="Mariusz Repczynski" /&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 09:22:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-by-selected-client-s-region/m-p/807759#M5059</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2019-10-02T09:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table by selected client's region</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-by-selected-client-s-region/m-p/807935#M5063</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81408" data-lia-user-login="Mariusz" class="lia-mention lia-mention-user"&gt;Mariusz&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much, that worked wonders!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, could you explain a little bit &lt;EM&gt;why&amp;nbsp;&lt;/EM&gt;it works, please? I have heard in some DAX workshops that you should not filter full tables, but instead only the columns you intend to use. Is your answer an exception to this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 12:31:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-by-selected-client-s-region/m-p/807935#M5063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-02T12:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter table by selected client's region</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-by-selected-client-s-region/m-p/808671#M5098</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This expression is ignoring filter applied to&amp;nbsp;'Clients'[ClientCode] only, all other filters on attributes within the 'Clients' dimension are preserved.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;replying filters by&amp;nbsp; VALUES ( 'Clients'[Region] ) is not necessary, as this filter was not ignored by ALL(&amp;nbsp;'Clients'[ClientCode] )&lt;/LI&gt;
&lt;LI&gt;adding any other attribute from&amp;nbsp;the 'Clients' dimension, for example, 'Clients'[City] would add it to filter context and result in every&amp;nbsp;'Clients'[ClientCode] duplicating SUM( Sales[Orders] ) value for this City.&lt;/LI&gt;
&lt;LI&gt;To ensure the above is not happening you need to ignore all filters coming to form Clients Dimension and apart from the 'Clients'[Region].&lt;/LI&gt;
&lt;/OL&gt;
&lt;PRE&gt;CALCULATE (
    SUM ( Sales[Orders] );
    ALL ( 'Clients'[ClientCode] );
    VALUES ( 'Clients'[Region] )
)&lt;/PRE&gt;
&lt;P&gt;In reference to the workshop that you have been attending, this is true and you should do it whenever possible or logical, it brings most benefits when you preforming iterations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" rel="nofollow noopener noreferrer" target="_blank"&gt;&lt;IMG src="https://ip1.i.lithium.com/1232d707bb27fc4afa3b81cd0702c478b6f7aced/68747470733a2f2f7374617469632e6c6963646e2e636f6d2f736364732f636f6d6d6f6e2f752f696d616765732f6c6f676f732f6c696e6b6564696e2f6c6f676f5f6c696e6b6564696e5f39337832315f76322e706e67" border="0" alt="Mariusz Repczynski" /&gt;&lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 08:19:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-table-by-selected-client-s-region/m-p/808671#M5098</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2019-10-03T08:19:48Z</dc:date>
    </item>
  </channel>
</rss>

