<?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 Merge two filters to apply across report using measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-two-filters-to-apply-across-report-using-measure/m-p/2888759#M93712</link>
    <description>&lt;P&gt;Hi, honestly Im coming here as a desperate DAX noob and I hope somebody can help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a live connection (so Im not able to edit/add columns) in my report with many pages. I got a request to exclude a specific type of products from one group, from the entire report. Let's say, I have group of products X, Y, Z, next I have a layer for each group with the types of products A B C. What I want to achieve is to exclude type A from group X only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that I cannot apply filters with an IF statement also I can't apply measure as a filter as long as it's not a calculated measure (but that would require writing new measures for each value I have in charts). Please correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be the best efficient way to apply that exclusion? I don't want to apply it on each chart separately and write measures for each value.&amp;nbsp; Many thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Nov 2022 09:09:40 GMT</pubDate>
    <dc:creator>AdrianSko</dc:creator>
    <dc:date>2022-11-07T09:09:40Z</dc:date>
    <item>
      <title>Merge two filters to apply across report using measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-two-filters-to-apply-across-report-using-measure/m-p/2888759#M93712</link>
      <description>&lt;P&gt;Hi, honestly Im coming here as a desperate DAX noob and I hope somebody can help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a live connection (so Im not able to edit/add columns) in my report with many pages. I got a request to exclude a specific type of products from one group, from the entire report. Let's say, I have group of products X, Y, Z, next I have a layer for each group with the types of products A B C. What I want to achieve is to exclude type A from group X only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that I cannot apply filters with an IF statement also I can't apply measure as a filter as long as it's not a calculated measure (but that would require writing new measures for each value I have in charts). Please correct me if I'm wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be the best efficient way to apply that exclusion? I don't want to apply it on each chart separately and write measures for each value.&amp;nbsp; Many thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 09:09:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-two-filters-to-apply-across-report-using-measure/m-p/2888759#M93712</guid>
      <dc:creator>AdrianSko</dc:creator>
      <dc:date>2022-11-07T09:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Merge two filters to apply across report using measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-two-filters-to-apply-across-report-using-measure/m-p/2888842#M93716</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can use filter measure combined with a calculation group to achieve this. E.g.&lt;BR /&gt;&lt;BR /&gt;Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Filter Measure for Q2 and Q3 = &lt;SPAN&gt;if&lt;SPAN&gt;(&lt;SPAN&gt;MAX&lt;SPAN&gt;(&lt;SPAN&gt;'Table (9)'&lt;SPAN&gt;[Quarter]&lt;SPAN&gt;) &lt;SPAN&gt;in&lt;SPAN&gt; {&lt;SPAN&gt;"Q2"&lt;SPAN&gt;,&lt;SPAN&gt;"Q3"&lt;SPAN&gt;},&lt;SPAN&gt;1&lt;SPAN&gt;,&lt;SPAN&gt;0&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;BR /&gt;calculation group:&lt;/P&gt;
&lt;PRE&gt;&lt;FONT&gt;&lt;FONT class=""&gt;calculate&lt;FONT class=""&gt;(&lt;FONT class=""&gt;selectedmeasure&lt;FONT class=""&gt;()&lt;FONT class=""&gt;,&lt;FONT class=""&gt;FILTER&lt;FONT class=""&gt;(&lt;FONT class=""&gt;'Table (9)',[Filter Measure for Q2 and Q3] = &lt;FONT class=""&gt;1&lt;FONT class=""&gt;))&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;This approach will filter the target table based on the if logic. So in this case My visual will only show Q2 and Q3 values:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Edit, here is a link to an article by SQLBI about calculation groups:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.sqlbi.com/articles/introducing-calculation-groups/" target="_blank" rel="noopener"&gt;Introducing Calculation Groups - SQLBI&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 09:39:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Merge-two-filters-to-apply-across-report-using-measure/m-p/2888842#M93716</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-11-07T09:39:55Z</dc:date>
    </item>
  </channel>
</rss>

