<?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 filtering between two tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3515159#M134934</link>
    <description>&lt;P&gt;Hi guys,I am relatively new to powerbi and am struggling to implement this filter.&lt;BR /&gt;I have two tables, One with userID and one with their different qualifications, another table with different Jobs and the required qualification per job, my data looks something similar to below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to match up the user to each Job they are qualified to do and hence be able to filter for each job to show the necessary users and qualifications.&lt;/P&gt;&lt;P&gt;I have tried a various approaches such as lookupvale, but as there can be multiple jobs available for different qualification i couldnt find a way around it.&amp;nbsp;&lt;BR /&gt;i tried to use concatenx:&lt;/P&gt;&lt;P&gt;Concatenx ( summarize(&amp;nbsp; filter( JOBS, JOBS[Requirement} = User[qualification] ) , JOBS[job] ) ,&amp;nbsp;JOBS[job] , ", ")&lt;/P&gt;&lt;P&gt;But this just gave me a list of the jobs that the qualifications Could get not what the user is qualified to get and unsure on how to filter the orignal table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this makes sense and Any help would be much appreciated and thank you in advance for any advice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 19:33:18 GMT</pubDate>
    <dc:creator>sharpers4567</dc:creator>
    <dc:date>2023-11-03T19:33:18Z</dc:date>
    <item>
      <title>filtering between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3515159#M134934</link>
      <description>&lt;P&gt;Hi guys,I am relatively new to powerbi and am struggling to implement this filter.&lt;BR /&gt;I have two tables, One with userID and one with their different qualifications, another table with different Jobs and the required qualification per job, my data looks something similar to below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to match up the user to each Job they are qualified to do and hence be able to filter for each job to show the necessary users and qualifications.&lt;/P&gt;&lt;P&gt;I have tried a various approaches such as lookupvale, but as there can be multiple jobs available for different qualification i couldnt find a way around it.&amp;nbsp;&lt;BR /&gt;i tried to use concatenx:&lt;/P&gt;&lt;P&gt;Concatenx ( summarize(&amp;nbsp; filter( JOBS, JOBS[Requirement} = User[qualification] ) , JOBS[job] ) ,&amp;nbsp;JOBS[job] , ", ")&lt;/P&gt;&lt;P&gt;But this just gave me a list of the jobs that the qualifications Could get not what the user is qualified to get and unsure on how to filter the orignal table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this makes sense and Any help would be much appreciated and thank you in advance for any advice &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 19:33:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3515159#M134934</guid>
      <dc:creator>sharpers4567</dc:creator>
      <dc:date>2023-11-03T19:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: filtering between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3515474#M134951</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="641100" data-lia-user-login="sharpers4567" class="lia-mention lia-mention-user"&gt;sharpers4567&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to plot a table visual with table1[user] column and a measure like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;JobList = 
VAR _list = 
CALCULATETABLE(
    VALUES(Table2[job]),
    TREATAS(
        VALUES(Table2[Requirement]),
        Table1[Qualification]
    )
)
VAR _result = 
CONCATENATEX(
    _list,
    Table2[job],
    ", "
)
RETURN _result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;plot a table visual with table2[requirement] column and a measure like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;UserList = 
VAR _list =
CALCULATETABLE(
    VALUES(Table1[user]),
    TREATAS(
        VALUES(Table1[Qualification]),
        Table2[Requirement]
    )
)
VAR _result =
CONCATENATEX(
    _list,
    Table1[user],
    ", "
)
RETURN _result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it worked like:&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>Sat, 04 Nov 2023 03:34:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3515474#M134951</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-04T03:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: filtering between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3515876#M134972</link>
      <description>&lt;P&gt;Hi, Thank you for the solution, it looks like its heading in the right direction, However I am trying to show the users who match fully, for example for job 1 you need all x,y,z so only user 'a' would be qualified for that sepecific one, sorry for the confusion.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 16:24:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3515876#M134972</guid>
      <dc:creator>sharpers4567</dc:creator>
      <dc:date>2023-11-04T16:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: filtering between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3516425#M134999</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="641100" data-lia-user-login="sharpers4567" class="lia-mention lia-mention-user"&gt;sharpers4567&lt;/a&gt;&amp;nbsp;, you can try this measure:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;jobs = 
var t = 
    FILTER (
        GENERATE ( VALUES ( users[user] ), VALUES ( jobs[job] ) ),
            VAR current_user = CALCULATE ( MAX ( users[user] ) )
            VAR current_job = CALCULATE ( MAX ( jobs[job] ) )
            VAR qualifications = CALCULATETABLE ( VALUES ( users[qualification] ), users[user] = current_user )
            VAR requirements = CALCULATETABLE ( VALUES ( jobs[requirement] ), jobs[job] = current_job )
            VAR check = COUNTROWS ( EXCEPT ( requirements, qualifications ) )
            RETURN
                check = blank()
    )
RETURN
    CONCATENATEX( t, [job], ", " )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 14:24:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3516425#M134999</guid>
      <dc:creator>ERD</dc:creator>
      <dc:date>2023-11-05T14:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: filtering between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3516890#M135031</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="641100" data-lia-user-login="sharpers4567" class="lia-mention lia-mention-user"&gt;sharpers4567&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try to plot a table visual with table2[job] column and a measure like:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;QualUserList = 
VAR _reqlist = 
CONCATENATEX(
    VALUES(table2[Requirement]), 
    table2[Requirement], 
    ", "
)
VAR _table =
ADDCOLUMNS(
    VALUES(table1[user]),
    "QuaList",
    CONCATENATEX(
        CALCULATETABLE(VALUES(table1[qualification])),
        table1[qualification],
        ", "
    )
)
VAR _userlist =
CALCULATETABLE(
    VALUES(table1[user]),
    FILTER(
        _table,
        CONTAINSSTRING([QuaList], _reqlist)
    )
)
VAR _result =
CONCATENATEX(
    _userlist,
    table1[user],
    ", " 
)
RETURN _result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it worked like:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 03:35:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3516890#M135031</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-11-06T03:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: filtering between two tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3521935#M135285</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="641100" data-lia-user-login="sharpers4567" class="lia-mention lia-mention-user"&gt;sharpers4567&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Has your problem been solved yet? If it is solved please accept the reply that offered you help as the solution. If it is not solved, please tell us what output you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 09:09:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/filtering-between-two-tables/m-p/3521935#M135285</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-11-08T09:09:39Z</dc:date>
    </item>
  </channel>
</rss>

