<?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: USERELATIONSHIP when certain value is selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2179663#M50700</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;According to your description, I create a sample, the measure is just like you wrote. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;When I drag it into the values, and select “similar”, it can work fine like other fields.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;Here’s my sample bellow.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 06:01:26 GMT</pubDate>
    <dc:creator>v-yanjiang-msft</dc:creator>
    <dc:date>2021-11-09T06:01:26Z</dc:date>
    <item>
      <title>USERELATIONSHIP when certain value is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2173089#M50502</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm filtering table Person ID with the Field of business dimensional table. If one specific field (for example Field 1) is selected we want to filter every person ID on every company. But in case the selection is "Similar" we should only get a list of person ID's who belong to any company that is similar for the selected company.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if there is a way to build a measure that activates the inactive relation between Company 2 and Person ID &lt;FONT color="#FF0000"&gt;whenever&amp;nbsp;&lt;FONT color="#000000"&gt;"Similar" is selected.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Thanks in advance!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;Julia&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2021 16:40:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2173089#M50502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-04T16:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: USERELATIONSHIP when certain value is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2173637#M50527</link>
      <description>&lt;P&gt;You could write a measure with two variables - one with USERELATIONSHIP and one without, and then use IF with SELECTEDVALUE on your slicer column to decide which to return.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 00:18:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2173637#M50527</guid>
      <dc:creator>mahoneypat</dc:creator>
      <dc:date>2021-11-05T00:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: USERELATIONSHIP when certain value is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2174686#M50564</link>
      <description>&lt;P&gt;Thanks, your solution moved me forward but I still need some additional guidance. This is how my measure worked out:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure =&amp;nbsp;&lt;BR /&gt;var _similar = CALCULATE(DISTINCTCOUNT('PERSON ID'[id]), USERELATIONSHIP(PERSON ID[id], Company2[Id]))&lt;BR /&gt;var _all = CALCULATE(DISTINCTCOUNT('PERSON ID[id])&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;CALCULATE(IF(SELECTEDVALUE(Field of Business[key]) = "Similar", _similar, _all))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is, I only get the calculated amount of similar id's but it is not possible to use them as row values. In the Person ID table I have additional information, such as gender. I'd like to visualize how id's within each and every selection are divided into men and women.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I select any other field than "Similar", the column chart works perfectly. When selecting "Similar", the visualization is turning all white.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an idea how this could be fixed?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 12:06:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2174686#M50564</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-05T12:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: USERELATIONSHIP when certain value is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2178365#M50676</link>
      <description>&lt;P&gt;Does anybody have an idea how to fix this? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 14:59:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2178365#M50676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-08T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: USERELATIONSHIP when certain value is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2179663#M50700</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;According to your description, I create a sample, the measure is just like you wrote. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;When I drag it into the values, and select “similar”, it can work fine like other fields.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;Here’s my sample bellow.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 12.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;Best Regards,&lt;BR /&gt;Community Support Team _ kalyj&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Segoe UI',sans-serif; color: black;"&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 06:01:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2179663#M50700</guid>
      <dc:creator>v-yanjiang-msft</dc:creator>
      <dc:date>2021-11-09T06:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: USERELATIONSHIP when certain value is selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2180896#M50764</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="334520" data-lia-user-login="v-yanjiang-msft" class="lia-mention lia-mention-user"&gt;v-yanjiang-msft&lt;/a&gt;! Your answer made me realize my model wasn't following exactly the picture attached. After making some relation changes the report started to work as I had hoped. Thanks for making such a huge effort &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 16:14:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/USERELATIONSHIP-when-certain-value-is-selected/m-p/2180896#M50764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-09T16:14:41Z</dc:date>
    </item>
  </channel>
</rss>

