<?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: DAX Measure to filter Multiple DataSets in Visuals - Power Bi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-filter-Multiple-DataSets-in-Visuals-Power-Bi/m-p/3301612#M123174</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="351034" data-lia-user-login="ybicalways79" class="lia-mention lia-mention-user"&gt;ybicalways79&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to remove or inactive the relationship between two tables. Then create measures to get result.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Select Category Price = 
VAR _SELECTEDALUE =
    SELECTEDVALUE ( 'Visual Category'[SalesRounteMatch] )
RETURN
    IF (
        ISFILTERED ( 'Visual Category'[Matched Categories] ),
        IF (
            _SELECTEDALUE = BLANK (),
            CALCULATE ( SUM ( Sales[Price] ) ),
            CALCULATE ( SUM ( Sales[Price] ), Sales[Route] = _SELECTEDALUE )
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 05:34:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-26T05:34:35Z</dc:date>
    <item>
      <title>DAX Measure to filter Multiple DataSets in Visuals - Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-filter-Multiple-DataSets-in-Visuals-Power-Bi/m-p/3300522#M123093</link>
      <description>&lt;P&gt;Ive been at this a week now with little progress and lot of frustration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 slicers is my projects which are both shows here in the left corner.&amp;nbsp; When I select a Visual Category, I would like the cooresponding Sales by the related Route code.&amp;nbsp; Example, I click on "A Route Time" and the line in the graph only shows A routes.&amp;nbsp; I select "C Route Efficiency (72%)" and i see only sales for C Routes.&amp;nbsp; Now if i select "Open Pickups", I was to see a sum of all sales (A,B,C, Blank, etc).&amp;nbsp; Would anyone be able to show me the proper DAX functions and structure?&lt;/P&gt;&lt;P&gt;&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;[Visual Category} is my table for my slicer&lt;/P&gt;&lt;P&gt;&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 a sample [Sales] table that has direct relationship to the table above based on Route.&amp;nbsp; Some route letters will not match example D, E or U.&amp;nbsp; Some will be blank.&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 22:54:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-filter-Multiple-DataSets-in-Visuals-Power-Bi/m-p/3300522#M123093</guid>
      <dc:creator>ybicalways79</dc:creator>
      <dc:date>2023-06-23T22:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to filter Multiple DataSets in Visuals - Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-filter-Multiple-DataSets-in-Visuals-Power-Bi/m-p/3301612#M123174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="351034" data-lia-user-login="ybicalways79" class="lia-mention lia-mention-user"&gt;ybicalways79&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suggest you to remove or inactive the relationship between two tables. Then create measures to get result.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Select Category Price = 
VAR _SELECTEDALUE =
    SELECTEDVALUE ( 'Visual Category'[SalesRounteMatch] )
RETURN
    IF (
        ISFILTERED ( 'Visual Category'[Matched Categories] ),
        IF (
            _SELECTEDALUE = BLANK (),
            CALCULATE ( SUM ( Sales[Price] ) ),
            CALCULATE ( SUM ( Sales[Price] ), Sales[Route] = _SELECTEDALUE )
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 05:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-filter-Multiple-DataSets-in-Visuals-Power-Bi/m-p/3301612#M123174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-26T05:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Measure to filter Multiple DataSets in Visuals - Power Bi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-filter-Multiple-DataSets-in-Visuals-Power-Bi/m-p/3303203#M123297</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&lt;BR /&gt;Short answer is your solution was great.&amp;nbsp; Now my issue that i didnt provide you enough infomation and tables.&amp;nbsp; I attempted to use what you suggested to fix but i could not get it to work.&amp;nbsp; I included a link to the .pbix&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://1drv.ms/u/s!Ape6tOFImQ6qg6JEOlNaI5o7GMXI5w?e=QNV4c4" target="_blank" rel="noopener"&gt;https://1drv.ms/u/s!Ape6tOFImQ6qg6JEOlNaI5o7GMXI5w?e=QNV4c4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 15:41:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Measure-to-filter-Multiple-DataSets-in-Visuals-Power-Bi/m-p/3303203#M123297</guid>
      <dc:creator>ybicalways79</dc:creator>
      <dc:date>2023-06-28T15:41:19Z</dc:date>
    </item>
  </channel>
</rss>

