<?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 Help with Lookup for multiple users in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2329066#M58438</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to PowerBI.&amp;nbsp; I use the user table for both the ApproverSentToId as well as the FinalApproverID to get the names for the report.&amp;nbsp; For the ApproverSentToID there could be 1 to many.&amp;nbsp; The FinalApproverID has only one user.&amp;nbsp; I am not sure what you mean by using the "&lt;SPAN&gt;passive + USERELATIONSHIP)".&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 19:22:49 GMT</pubDate>
    <dc:creator>lopezbec</dc:creator>
    <dc:date>2022-02-09T19:22:49Z</dc:date>
    <item>
      <title>DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2328692#M58415</link>
      <description>&lt;P&gt;I have a Sharepoint list that I am creating a PBI report for.&amp;nbsp; This sharepoint list will have one or more IDs for an approval workflow.&lt;/P&gt;&lt;P&gt;I want to show who the Approval request went to using the Approval Ids.&amp;nbsp; I have used the lookup and it works when there is only one user, but it does not work when there are multiple IDs to look up.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Approval Sent To = &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'User Information List'[Title]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'User Information List'[Id]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Process Review Status'[ApprovalSentToId]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Here is what is in my report, the one that is empty should have two names.&amp;nbsp; It appears that the lookup may not work, but I cannot find another option.&amp;nbsp; Any help would be appreciated.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:06:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2328692#M58415</guid>
      <dc:creator>lopezbec</dc:creator>
      <dc:date>2022-02-09T16:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2328723#M58419</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Is there a reason you can't have and active relationship between the tables (if so you can use passive + USERELATIONSHIP)?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End result:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Ping me with&amp;nbsp;@ if you have questions&lt;BR /&gt;&lt;BR /&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:15:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2328723#M58419</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-09T16:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2328741#M58421</link>
      <description>&lt;P&gt;Hello there&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358141" data-lia-user-login="lopezbec" class="lia-mention lia-mention-user"&gt;lopezbec&lt;/a&gt;&amp;nbsp;! The search values need to ideally be scalar. You should split the column in power query to then do the LOOKUP, but you can try the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Approval Sent To =
IF (
    IFERROR ( SEARCH ( ",", [ApprovalSentToId] ), -1 ) &amp;gt;= 0,
    LEFT ( RELATED ( 'User Information List'[Title] ), 3 ),
    LEFT ( RELATED ( 'User Information List'[Title] ), 3 ) &amp;amp; ", "
        &amp;amp; RIGHT ( RELATED ( 'User Information List'[Title] ), 3 )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this answer solves your problem!&lt;BR /&gt;If you need any additional help please &lt;SPAN&gt;@&lt;/SPAN&gt; me in your reply.&lt;BR /&gt;If my reply provided you with a solution, please consider marking it as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; or giving it a kudoe &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/gon%C3%A7alo-costa-b32253159" target="_blank" rel="noopener"&gt;You can also check out my LinkedIn!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Gonçalo Geraldes&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:22:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2328741#M58421</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2022-02-09T16:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2329059#M58437</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="301004" data-lia-user-login="goncalogeraldes" class="lia-mention lia-mention-user"&gt;goncalogeraldes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This did not work, when there is only one approver name it splits the name with a comma.&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;&lt;P&gt;Can you give me more information on how to split the column?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 19:16:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2329059#M58437</guid>
      <dc:creator>lopezbec</dc:creator>
      <dc:date>2022-02-09T19:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2329066#M58438</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to PowerBI.&amp;nbsp; I use the user table for both the ApproverSentToId as well as the FinalApproverID to get the names for the report.&amp;nbsp; For the ApproverSentToID there could be 1 to many.&amp;nbsp; The FinalApproverID has only one user.&amp;nbsp; I am not sure what you mean by using the "&lt;SPAN&gt;passive + USERELATIONSHIP)".&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 19:22:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2329066#M58438</guid>
      <dc:creator>lopezbec</dc:creator>
      <dc:date>2022-02-09T19:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2330562#M58538</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="358141" data-lia-user-login="lopezbec" class="lia-mention lia-mention-user"&gt;lopezbec&lt;/a&gt;&amp;nbsp;my bad, try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Approval Sent To =
IF (
    IFERROR ( SEARCH ( ",", [ApprovalSentToId] ), -1 ) &amp;gt; 0,
    LEFT ( RELATED ( 'User Information List'[Title] ), 3 ),
    LEFT ( RELATED ( 'User Information List'[Title] ), 3 ) &amp;amp; ", "
        &amp;amp; RIGHT ( RELATED ( 'User Information List'[Title] ), 3 )
)&lt;/LI-CODE&gt;&lt;P&gt;Hope this answer solves your problem!&lt;BR /&gt;If you need any additional help please &lt;SPAN&gt;@&lt;/SPAN&gt; me in your reply.&lt;BR /&gt;If my reply provided you with a solution, please consider marking it as a solution &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; or giving it a kudoe &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/gon%C3%A7alo-costa-b32253159" target="_blank"&gt;You can also check out my LinkedIn!&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Gonçalo Geraldes&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 09:53:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2330562#M58538</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2022-02-10T09:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2330855#M58568</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I meant that if you can't have an active relationship (like the one in my example) between the tables. You can create an inactive relationship and use USERELATIONSHIP function within CALCULATE to activate the relationship and combined this with variables to get the values you desire. However, I would recommend first trying to create an active relationship.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 12:40:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2330855#M58568</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-10T12:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2330985#M58581</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="301004" data-lia-user-login="goncalogeraldes" class="lia-mention lia-mention-user"&gt;goncalogeraldes&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do not have a relationship between the tables, I get this error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I created a relationship with ApprovalSentToID as well as FinalApproverID to ID in the User Information List&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It then works, but I get the same results and it is not pulling in anything for both approvers.&amp;nbsp; The second row should have 2 approver names.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is what the data looks like:&lt;/P&gt;&lt;P&gt;ApprovalSentToID:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;User table:&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;I changed the number from 3 to 15 and I get these results&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Now it shows the full name, but when there is a single approver, it lists it twice.&amp;nbsp; When there is multiple, still nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another Comment, I don't think I can split the columns, because I will not know if there is one approver, or 10, the approver list is dynamic based upon another list for Department in SharePoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 16:27:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2330985#M58581</guid>
      <dc:creator>lopezbec</dc:creator>
      <dc:date>2022-02-10T16:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2331554#M58608</link>
      <description>&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/user/viewprofilepage/user-id/343431" target="_blank"&gt;@ValtteriN&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created an active relationship, but I do not understand how what you have above works, my ApprovalSentToID column will have 1 to many ids separated by commas.&amp;nbsp; I do not know if there will be one or 10 approver IDs in that field.&amp;nbsp; Can you provide the measure text of what you used?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 18:13:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2331554#M58608</guid>
      <dc:creator>lopezbec</dc:creator>
      <dc:date>2022-02-10T18:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2331594#M58614</link>
      <description>&lt;P&gt;Could you try this then?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Approval Sent To =
IF (
    IFERROR ( SEARCH ( ",", [ApprovalSentToId] ), -1 ) &amp;gt;= 0,
    LEFT ( RELATED ( 'User Information List'[Title] ), 3 ) &amp;amp; ", "
        &amp;amp; RIGHT ( RELATED ( 'User Information List'[Title] ), 3 ),
    LEFT ( RELATED ( 'User Information List'[Title] ), 3 )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Feb 2022 18:32:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2331594#M58614</guid>
      <dc:creator>goncalogeraldes</dc:creator>
      <dc:date>2022-02-10T18:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Help with Lookup for multiple users</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2331618#M58618</link>
      <description>&lt;P&gt;Thanks for your assistance, but I found a different solution.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;AssignedTo is also found under FieldValuesAsText.&amp;nbsp; I selected the fields I needed and it is already available.&amp;nbsp; No function needed.&lt;/SPAN&gt;&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>Thu, 10 Feb 2022 18:51:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Help-with-Lookup-for-multiple-users/m-p/2331618#M58618</guid>
      <dc:creator>lopezbec</dc:creator>
      <dc:date>2022-02-10T18:51:04Z</dc:date>
    </item>
  </channel>
</rss>

