<?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: IN with a LOOKUPVALUE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IN-with-a-LOOKUPVALUE/m-p/877959#M7433</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="168272" data-lia-user-login="ivancolo96" class="lia-mention lia-mention-user"&gt;ivancolo96&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;maybe you want to give this statement a try:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;'Company'[SOC] 
IN
SELECTCOLUMNS(
	FILTER(
		USER_SOC
		, USER_SOC[userID] = USERNAME()
	)
	"SOC" , USER_SOC[SOC]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2019 18:33:34 GMT</pubDate>
    <dc:creator>TomMartens</dc:creator>
    <dc:date>2019-12-17T18:33:34Z</dc:date>
    <item>
      <title>IN with a LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IN-with-a-LOOKUPVALUE/m-p/877865#M7427</link>
      <description>&lt;P&gt;Dear all,&amp;nbsp;&lt;/P&gt;&lt;DIV class="tlid-input input"&gt;&lt;DIV class="source-wrap"&gt;&lt;DIV class="input-full-height-wrapper tlid-input-full-height-wrapper"&gt;&lt;DIV class="source-input"&gt;&lt;DIV class="source-footer-wrap source-or-target-footer"&gt;&lt;DIV class="character-count tlid-character-count"&gt;&lt;DIV class="cc-ctr normal"&gt;&lt;SPAN&gt;sorry if it will be an easy question ...&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="tlid-results-container results-container"&gt;&lt;DIV class="tlid-result result-dict-wrapper"&gt;&lt;DIV class="result tlid-copy-target"&gt;&lt;DIV class="text-wrap tlid-copy-target"&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I should realize an IN condition based on a &lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;.&lt;BR /&gt;In a table i have a list of user and all the company they can view and of course i need&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;to filter fact data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;Previously a user accessed only one company and the filter was like this:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="result-shield-container tlid-copy-target"&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;='Company'[SOC] = LOOKUPVALUE(USER_SOC[SOC] , USER_SOC [userID], USERNAME() )&lt;BR /&gt;&lt;BR /&gt;How can I "change" the = with an IN condition?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Dec 2019 16:30:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IN-with-a-LOOKUPVALUE/m-p/877865#M7427</guid>
      <dc:creator>ivancolo96</dc:creator>
      <dc:date>2019-12-17T16:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: IN with a LOOKUPVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IN-with-a-LOOKUPVALUE/m-p/877959#M7433</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="168272" data-lia-user-login="ivancolo96" class="lia-mention lia-mention-user"&gt;ivancolo96&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;maybe you want to give this statement a try:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;'Company'[SOC] 
IN
SELECTCOLUMNS(
	FILTER(
		USER_SOC
		, USER_SOC[userID] = USERNAME()
	)
	"SOC" , USER_SOC[SOC]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2019 18:33:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/IN-with-a-LOOKUPVALUE/m-p/877959#M7433</guid>
      <dc:creator>TomMartens</dc:creator>
      <dc:date>2019-12-17T18:33:34Z</dc:date>
    </item>
  </channel>
</rss>

