<?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 Comparative Analysis using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparative-Analysis-using-DAX/m-p/4405530#M174900</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one table with columns Country and Sales. I want to do compartive analysis in same graph.&amp;nbsp; For that I need to have two set of country selections (two different slicers with country). If I select country two country from slicer 1, and two country from slicer 2, I would like to know the sales of those countries as Set 1 Sales &amp;amp; Set 2 Sales in graph. Note that I have other filetrs as well which should be&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User can select any combination from Country1 &amp;amp; Country2 Slicer&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2025 16:56:22 GMT</pubDate>
    <dc:creator>rob_vander2</dc:creator>
    <dc:date>2025-02-11T16:56:22Z</dc:date>
    <item>
      <title>Comparative Analysis using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparative-Analysis-using-DAX/m-p/4405530#M174900</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one table with columns Country and Sales. I want to do compartive analysis in same graph.&amp;nbsp; For that I need to have two set of country selections (two different slicers with country). If I select country two country from slicer 1, and two country from slicer 2, I would like to know the sales of those countries as Set 1 Sales &amp;amp; Set 2 Sales in graph. Note that I have other filetrs as well which should be&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User can select any combination from Country1 &amp;amp; Country2 Slicer&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 16:56:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparative-Analysis-using-DAX/m-p/4405530#M174900</guid>
      <dc:creator>rob_vander2</dc:creator>
      <dc:date>2025-02-11T16:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comparative Analysis using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparative-Analysis-using-DAX/m-p/4405595#M174903</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="628059" data-lia-user-login="rob_vander2" class="lia-mention lia-mention-user"&gt;rob_vander2&lt;/a&gt;&amp;nbsp;Create 2 disconnected slicer tables:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Slicer 1 = DISTINCT( 'Table'[Country] )

Slicer 2 = DISTINCT( 'Table'[Country] )&lt;/LI-CODE&gt;
&lt;P&gt;You could then create measure such as:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Sales 1 = 
  VAR __Countries = DISTINCT( 'Slicer 1'[Country] )
  VAR __Table = FILTER( 'Table', [Country] IN __Countries )
  VAR __Result = SUMX( __Table, [Sales] )
RETURN
  __Result

Sales 2 = 
  VAR __Countries = DISTINCT( 'Slicer 1'[Country] )
  VAR __Table = FILTER( 'Table', [Country] IN __Countries )
  VAR __Result = SUMX( __Table, [Sales] )
RETURN
  __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 11 Feb 2025 17:59:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Comparative-Analysis-using-DAX/m-p/4405595#M174903</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2025-02-11T17:59:47Z</dc:date>
    </item>
  </channel>
</rss>

