<?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: How do I apply a filter that relates to a more granular lever than the one I am reporting on? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-a-filter-that-relates-to-a-more-granular-lever/m-p/987796#M12219</link>
    <description>Anonymous&lt;/LI-USER&gt;, would you mind giving us a more understandable description with some simple data and the result you want?&lt;BR /&gt;&lt;BR /&gt;This will help us solve your problem more easily and quicker.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
    <pubDate>Mon, 23 Mar 2020 23:30:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-23T23:30:20Z</dc:date>
    <item>
      <title>How do I apply a filter that relates to a more granular lever than the one I am reporting on?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-a-filter-that-relates-to-a-more-granular-lever/m-p/985807#M12139</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Reported Splits on Bar Chart with drill down ability to get form DMA to City&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DMA (Denver Selected)&lt;/TD&gt;&lt;TD&gt;Distribution of DMA (Denver)&lt;/TD&gt;&lt;TD&gt;City (in Denver)&lt;/TD&gt;&lt;TD&gt;Distribution of City (in Denver)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Denver&lt;/TD&gt;&lt;TD&gt;235&lt;/TD&gt;&lt;TD&gt;Denver&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Denver&lt;/TD&gt;&lt;TD&gt;235&lt;/TD&gt;&lt;TD&gt;Littleton&lt;/TD&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;However, I want to put a limit on showing each DMA or City based on if they pass the distribution rule when it is also split by market so pub and cafe for example.&lt;BR /&gt;&lt;BR /&gt;Littleton For example passes Distribution &amp;gt; 30 at a more granular level so is showing on my bar chart.&lt;BR /&gt;However, when split by market Littleton bars &amp;lt; 30 and Littleton Cafes &amp;lt; 30 so I do not want Littleton to show on my bar chart but i want to be able to do this without putting market in my ledgend or showing on the chart at all, just a filter or some kind of calculated column maybe?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 18:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-a-filter-that-relates-to-a-more-granular-lever/m-p/985807#M12139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-22T18:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I apply a filter that relates to a more granular lever than the one I am reporting on?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-a-filter-that-relates-to-a-more-granular-lever/m-p/985826#M12141</link>
      <description>&lt;P&gt;I'm not at all clear on this. You could use the Filter pane to get rid of cities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you absolutely, positively have to do it in DAX, you can start your DAX code with something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Measure =&lt;/P&gt;
&lt;P&gt;&amp;nbsp; VAR __Table = FILTER('Table',[City] &amp;lt;&amp;gt; "Some city" &amp;amp;&amp;amp; [City] &amp;lt;&amp;gt; "Some other city")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then perform your calculations against __Table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, at the end of your measure you could do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; IF(MAX('Table'[City]) = "Some city" ||&amp;nbsp;MAX('Table'[City]) = "Some other city",BLANK(), &amp;lt;whatever calculation&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 17:53:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-a-filter-that-relates-to-a-more-granular-lever/m-p/985826#M12141</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-03-22T17:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I apply a filter that relates to a more granular lever than the one I am reporting on?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-a-filter-that-relates-to-a-more-granular-lever/m-p/987796#M12219</link>
      <description>Anonymous&lt;/LI-USER&gt;, would you mind giving us a more understandable description with some simple data and the result you want?&lt;BR /&gt;&lt;BR /&gt;This will help us solve your problem more easily and quicker.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;D</description>
      <pubDate>Mon, 23 Mar 2020 23:30:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-a-filter-that-relates-to-a-more-granular-lever/m-p/987796#M12219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-23T23:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I apply a filter that relates to a more granular lever than the one I am reporting on?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-a-filter-that-relates-to-a-more-granular-lever/m-p/1056549#M14580</link>
      <description>&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured this out using a SUMX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Distribution_Segment_Limit = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX(&lt;/SPAN&gt;&lt;SPAN&gt;VALUES('Table'[Segment]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Distribution])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Where&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Distribution = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR Dist = DISTINCTCOUNT('Table'[ID])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN IF (Dist &amp;gt;= 30,Dist,Blank())&lt;BR /&gt;&lt;BR /&gt;From there I was able to plot my regions on a barchart without putting segment into the breakdown but the distribution was not included if it did not pass the distribution rule criteria for region and segment.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Apr 2020 13:19:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-do-I-apply-a-filter-that-relates-to-a-more-granular-lever/m-p/1056549#M14580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-29T13:19:56Z</dc:date>
    </item>
  </channel>
</rss>

