<?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: Need help to use inactive and active relationship simultaneously in dax in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-use-inactive-and-active-relationship-simultaneously/m-p/3063199#M105956</link>
    <description>&lt;P&gt;Thanks Much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This solution worked perfectly for the requirement I had!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 07:59:35 GMT</pubDate>
    <dc:creator>AS1110</dc:creator>
    <dc:date>2023-02-06T07:59:35Z</dc:date>
    <item>
      <title>Need help to use inactive and active relationship simultaneously in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-use-inactive-and-active-relationship-simultaneously/m-p/3063099#M105951</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to use active and inactive relationship based on the Primary Key in a single measure to use it on a single visulaization.&lt;BR /&gt;&lt;BR /&gt;Scenario:&lt;BR /&gt;If Key is found in Table C&amp;nbsp; via active realtionship use active relationship in measure to find out sales.&lt;BR /&gt;If key is not found via active realtionship then compare Table A key with Table C using inactive relationship&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Tried below measure but this doesnt seem to be working&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;userrelationship = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table B'&lt;/SPAN&gt;&lt;SPAN&gt;[Key]&lt;/SPAN&gt;&lt;SPAN&gt;)=&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table c'&lt;/SPAN&gt;&lt;SPAN&gt;[Key]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;[salesnew]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[salesnew]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;USERELATIONSHIP&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Table C'&lt;/SPAN&gt;&lt;SPAN&gt;[Key]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Table A'&lt;/SPAN&gt;&lt;SPAN&gt;[Key]&lt;/SPAN&gt;&lt;SPAN&gt;)))&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2023 07:58:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-use-inactive-and-active-relationship-simultaneously/m-p/3063099#M105951</guid>
      <dc:creator>AS1110</dc:creator>
      <dc:date>2023-02-06T07:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to use inactive and active relationship simultaneously in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-use-inactive-and-active-relationship-simultaneously/m-p/3063118#M105952</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="424870" data-lia-user-login="AS1110" class="lia-mention lia-mention-user"&gt;AS1110&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;according to your description..&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your_measure =
IF (
    SELECTEDVALUE ( 'Table A'[Key] ) IN DISTINCT ( 'Table C'[Key] ),
    [salesnew],
    CALCULATE ( [salesnew], USERELATIONSHIP ( 'Table C'[Key], 'Table A'[Key] ) )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 06 Feb 2023 07:14:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-use-inactive-and-active-relationship-simultaneously/m-p/3063118#M105952</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-02-06T07:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to use inactive and active relationship simultaneously in dax</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-use-inactive-and-active-relationship-simultaneously/m-p/3063199#M105956</link>
      <description>&lt;P&gt;Thanks Much&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291363" data-lia-user-login="ERD" class="lia-mention lia-mention-user"&gt;ERD&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;This solution worked perfectly for the requirement I had!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 07:59:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-to-use-inactive-and-active-relationship-simultaneously/m-p/3063199#M105956</guid>
      <dc:creator>AS1110</dc:creator>
      <dc:date>2023-02-06T07:59:35Z</dc:date>
    </item>
  </channel>
</rss>

