<?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: Build a DAX table from another tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129205#M163984</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="283982" data-lia-user-login="DGPBi" class="lia-mention lia-mention-user"&gt;DGPBi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;isn't enough do add IN VALUES?&lt;BR /&gt;&lt;BR /&gt;Locations = &lt;BR /&gt;FILTER(&lt;BR /&gt;DISTINCT(&lt;BR /&gt;SELECTCOLUMNS(ADUser,&lt;BR /&gt;"PlanonID",ADUser[extensionAttribute6],&lt;BR /&gt;"CompanyName",ADUser[organizationalPerson.company],&lt;BR /&gt;"LegalCode",ADUser[extensionAttribute11]&lt;BR /&gt;)),&lt;BR /&gt;LEN([PlanonID])&amp;gt;0 &amp;amp;&amp;amp; LEN([CompanyName])&amp;gt;0 &amp;amp;&amp;amp; LEFT([PlanonID],4)="OBJ0" &amp;amp;&amp;amp; LEN([LegalCode])&amp;gt;0 &amp;amp;&amp;amp; [PlanonID] IN VALUES('Planon208'[Code])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 08:46:36 GMT</pubDate>
    <dc:creator>Gabry</dc:creator>
    <dc:date>2024-09-02T08:46:36Z</dc:date>
    <item>
      <title>Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129175#M163982</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I have to build a new table with collect certain information (Company name, Legal Code, PlanonID) from my AAD users table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I built this :&amp;nbsp;&lt;BR /&gt;Now the request changed,&amp;nbsp; I need the same build + comparing if the PlanonID exists in 'Planon208' Table column [Code].&lt;BR /&gt;I have no idea on the way to build this ...&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Locations = 
     FILTER(
        DISTINCT(
            SELECTCOLUMNS(ADUser,
                 "PlanonID",ADUser[extensionAttribute6],
                 "CompanyName",ADUser[organizationalPerson.company],
                 "LegalCode",ADUser[extensionAttribute11]
                 )),
        LEN([PlanonID])&amp;gt;0 &amp;amp;&amp;amp; LEN([CompanyName])&amp;gt;0 &amp;amp;&amp;amp; LEFT([PlanonID],4)="OBJ0" &amp;amp;&amp;amp; LEN([LegalCode])&amp;gt;0
     )&lt;/LI-CODE&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 08:27:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129175#M163982</guid>
      <dc:creator>DGPBi</dc:creator>
      <dc:date>2024-09-02T08:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129205#M163984</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="283982" data-lia-user-login="DGPBi" class="lia-mention lia-mention-user"&gt;DGPBi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;isn't enough do add IN VALUES?&lt;BR /&gt;&lt;BR /&gt;Locations = &lt;BR /&gt;FILTER(&lt;BR /&gt;DISTINCT(&lt;BR /&gt;SELECTCOLUMNS(ADUser,&lt;BR /&gt;"PlanonID",ADUser[extensionAttribute6],&lt;BR /&gt;"CompanyName",ADUser[organizationalPerson.company],&lt;BR /&gt;"LegalCode",ADUser[extensionAttribute11]&lt;BR /&gt;)),&lt;BR /&gt;LEN([PlanonID])&amp;gt;0 &amp;amp;&amp;amp; LEN([CompanyName])&amp;gt;0 &amp;amp;&amp;amp; LEFT([PlanonID],4)="OBJ0" &amp;amp;&amp;amp; LEN([LegalCode])&amp;gt;0 &amp;amp;&amp;amp; [PlanonID] IN VALUES('Planon208'[Code])&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 08:46:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129205#M163984</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-09-02T08:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129287#M163987</link>
      <description>&lt;P&gt;Hi Gabri,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Locations = 
     FILTER(
        DISTINCT(
            SELECTCOLUMNS(ADUser,
                 "PlanonID",ADUser[extensionAttribute6],
                 "CompanyName",ADUser[organizationalPerson.company],
                 "LegalCode",ADUser[extensionAttribute11]
            )),
        LEN([PlanonID])&amp;gt;0 &amp;amp;&amp;amp; LEN([CompanyName])&amp;gt;0 &amp;amp;&amp;amp; LEFT([PlanonID],4)="OBJ0" &amp;amp;&amp;amp; LEN([LegalCode])&amp;gt;0 &amp;amp;&amp;amp; [PlanonID] IN VALUES('Planon208'[Code])
     )&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;With this, I obtain an error message : "A circular dependency was detected: Locations[Locations], 8b77ea91-5664-b487-a140-3621e9975612, Locations[PlanonID], Locations[Locations].&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 09:36:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129287#M163987</guid>
      <dc:creator>DGPBi</dc:creator>
      <dc:date>2024-09-02T09:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129341#M163989</link>
      <description>&lt;P&gt;Sorry, can't look at that model&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":crying_face:"&gt;😢&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;You can try to do it as steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ADUserFiltered = &lt;BR /&gt;FILTER(&lt;BR /&gt;ADUser,&lt;BR /&gt;LEN(ADUser[extensionAttribute6]) &amp;gt; 0 &amp;amp;&amp;amp;&lt;BR /&gt;LEN(ADUser[organizationalPerson.company]) &amp;gt; 0 &amp;amp;&amp;amp;&lt;BR /&gt;LEN(ADUser[extensionAttribute11]) &amp;gt; 0 &amp;amp;&amp;amp;&lt;BR /&gt;LEFT(ADUser[extensionAttribute6], 4) = "OBJ0"&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;LocationsTemp = &lt;BR /&gt;DISTINCT(&lt;BR /&gt;SELECTCOLUMNS(&lt;BR /&gt;ADUserFiltered,&lt;BR /&gt;"PlanonID", ADUserFiltered[extensionAttribute6],&lt;BR /&gt;"CompanyName", ADUserFiltered[organizationalPerson.company],&lt;BR /&gt;"LegalCode", ADUserFiltered[extensionAttribute11]&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Locations = &lt;BR /&gt;FILTER(&lt;BR /&gt;LocationsTemp,&lt;BR /&gt;LocationsTemp[PlanonID] IN VALUES('Planon208'[Code])&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 10:03:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129341#M163989</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-09-02T10:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129674#M164015</link>
      <description>&lt;P&gt;Thanks Gabry&lt;/P&gt;&lt;P&gt;Ok, so I have to build 3 tables vs 1 table?&lt;BR /&gt;After tried this solution so 2 new tables and updated the current table which have lot of relationships in place I still obtain the same error message:&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;A circular dependency was detected: Locations[Locations], 8b77ea91-5664-b487-a140-3621e9975612, Locations[PlanonID], Locations[Locations].&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Is there a way to have only 1 table ?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 14:25:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129674#M164015</guid>
      <dc:creator>DGPBi</dc:creator>
      <dc:date>2024-09-02T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129715#M164022</link>
      <description>&lt;P&gt;Yeah I meant using variables, not building 3 separate tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any other calculated table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Planon208 is a calculated table?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 14:40:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129715#M164022</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-09-02T14:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129823#M164028</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;If I understood correctly I changed to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Locations = 

VAR ADUserFiltered1 =
FILTER(
ADUser,
LEN(ADUser[extensionAttribute6]) &amp;gt; 0 &amp;amp;&amp;amp;
LEN(ADUser[organizationalPerson.company]) &amp;gt; 0 &amp;amp;&amp;amp;
LEN(ADUser[extensionAttribute11]) &amp;gt; 0 &amp;amp;&amp;amp;
LEFT(ADUser[extensionAttribute6], 4) = "OBJ0"
)

VAR LocationsTemp1 =
DISTINCT(
SELECTCOLUMNS(
ADUserFiltered1,
"PlanonID", ADUserFiltered[extensionAttribute6],
"CompanyName", ADUserFiltered[organizationalPerson.company],
"LegalCode", ADUserFiltered[extensionAttribute11]
)
)

VAR Locations1 =
FILTER(
LocationsTemp1,
LocationsTemp[PlanonID] IN VALUES('Planon208'[Code])
)

RETURN 
Locations1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I receive this error:&lt;BR /&gt;&lt;STRONG&gt;A single value for column 'extensionAttribute11' in table 'ADUserFiltered' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;About the tables:&lt;/P&gt;&lt;P&gt;- Locations, ITOnSIte_ITSupport, ITOnsite_Contacts, ITOnsite_FullInfo are DAX calculated tables.&lt;BR /&gt;- LocationList, Planon208, Site Support- MFG, User Information List, ADUser are imported from different sources&lt;BR /&gt;- PlanonUnpivot, Role, are unpivot tables.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 16:06:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129823#M164028</guid>
      <dc:creator>DGPBi</dc:creator>
      <dc:date>2024-09-02T16:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129829#M164029</link>
      <description>&lt;P&gt;Is it possible for you to load the pbix with masked data? I can't work this out like this sorry&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 16:05:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129829#M164029</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-09-02T16:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129847#M164032</link>
      <description>&lt;P&gt;PLease find here the link:&lt;BR /&gt;Gabry, I sent the link in PM.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 06:26:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4129847#M164032</guid>
      <dc:creator>DGPBi</dc:creator>
      <dc:date>2024-09-03T06:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4130599#M164063</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;based on your requests this is the formula for your table&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Locations = 
var _filter = DISTINCT(Planon208[Code])
RETURN
     FILTER(
        DISTINCT(
            SELECTCOLUMNS(ADUser,
                 "PlanonID",ADUser[extensionAttribute6],
                 "CompanyName",ADUser[organizationalPerson.company],
                 "LegalCode",ADUser[extensionAttribute11],
                 "IsInternal",CONTAINSSTRING(ADUser[distinguishedName],"Internal")
            )),
        LEN([PlanonID])&amp;gt;0 &amp;amp;&amp;amp; LEN([CompanyName])&amp;gt;0 &amp;amp;&amp;amp; LEFT([PlanonID],4)="OBJ0" &amp;amp;&amp;amp; LEN([LegalCode])&amp;gt;0 &amp;amp;&amp;amp; [IsInternal]=TRUE() &amp;amp;&amp;amp; [PlanonID] in _filter
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Sep 2024 07:04:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4130599#M164063</guid>
      <dc:creator>Gabry</dc:creator>
      <dc:date>2024-09-03T07:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Build a DAX table from another tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4131571#M164104</link>
      <description>&lt;P&gt;Thanks a lot! ... The code is accepted and&amp;nbsp;&lt;SPAN&gt;number of the locations seems OK.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 15:12:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Build-a-DAX-table-from-another-tables/m-p/4131571#M164104</guid>
      <dc:creator>DGPBi</dc:creator>
      <dc:date>2024-09-03T15:12:14Z</dc:date>
    </item>
  </channel>
</rss>

