<?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: Create a calculated columns from 2 tables in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2619286#M76228</link>
    <description>&lt;P&gt;Yes, you can use the same formula - only replace Table2 to Table1 and all will work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Text me when it works.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jul 2022 12:48:59 GMT</pubDate>
    <dc:creator>technolog</dc:creator>
    <dc:date>2022-07-05T12:48:59Z</dc:date>
    <item>
      <title>Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615585#M76016</link>
      <description>&lt;P&gt;Dear Community, I have these 2 tables:&lt;/P&gt;&lt;P&gt;Table1&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Table2&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The relationship between tables is many-to-many with column Client&lt;/P&gt;&lt;P&gt;My objective is to have two calculated columns in Table1 where the first column tell me if for the client the Table1[Giorno] is equal to Table2[Giorni in numeri] in this case the answer is "OK" or "NOT OK". The second column shows me the value in Table2[ore] for the specific client in Table1, where Table1[colonna giorno calcolato] is equal to "OK".&lt;/P&gt;&lt;P&gt;I try to compute some code, but I am too inexpert.&lt;/P&gt;&lt;P&gt;Anyone can help me?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2022 07:02:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615585#M76016</guid>
      <dc:creator>marabeda</dc:creator>
      <dc:date>2022-07-03T07:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615595#M76020</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;You need to use IF and RELATED&lt;/P&gt;&lt;P&gt;For Table 1:&lt;/P&gt;&lt;P&gt;Colonna giorno calc = IF(NOT(ISBLANK(RELATED('Table2'[Cliente']))), "OK", "NOT OK")&lt;/P&gt;&lt;P&gt;For Table 2 the same:&lt;/P&gt;&lt;P&gt;Colonna giorno calc = IF(NOT(ISBLANK(RELATED('Table1'[Cliente']))), "OK", "NOT OK")&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2022 07:22:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615595#M76020</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-03T07:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615772#M76045</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="394622" data-lia-user-login="marabeda" class="lia-mention lia-mention-user"&gt;marabeda&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The RELATEDTABLE ( Table2 ) will return two rows for each row in Table1. There must be another column to be matched in order to filter it down to one row. Ror examole a date or a month. Otherwise this cannot be achieved&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2022 14:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615772#M76045</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-03T14:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615779#M76046</link>
      <description>&lt;P&gt;Before this&lt;/P&gt;&lt;P&gt;Colonna giorno calc = IF(NOT(ISBLANK(RELATED('Table2'[Cliente']))), "OK", "NOT OK")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can create calculated table&lt;/P&gt;&lt;P&gt;Table2Unique = DISTINCT('Table2'[Cliente])&lt;/P&gt;&lt;P&gt;and then use&lt;/P&gt;&lt;P&gt;Colonna giorno calc = IF(NOT(ISBLANK(RELATED('Table2Unique'[Cliente']))), "OK", "NOT OK")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2022 14:24:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615779#M76046</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-03T14:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615783#M76048</link>
      <description>&lt;P&gt;I find more simple solution&lt;/P&gt;&lt;P&gt;For Table1&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Colonna calc = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt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lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 03 Jul 2022 14:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615783#M76048</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-03T14:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615895#M76057</link>
      <description>&lt;P&gt;Hi, thank you for your reply, appreciated, but probably I was not so clear.&lt;/P&gt;&lt;P&gt;What I need to know in Table1 is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Is the client in Table1[clienti]=Table2[clienti] if the answer is yes then&lt;/P&gt;&lt;P&gt;2) Is&amp;nbsp; Table1[giorni]=Table2[giorni in numeri]? If the answer is yes, then is OK.&lt;/P&gt;&lt;P&gt;My aim is to be sure that my client has the job done exactly at the right day of the week.&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2022 20:25:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615895#M76057</guid>
      <dc:creator>marabeda</dc:creator>
      <dc:date>2022-07-03T20:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615897#M76058</link>
      <description>&lt;P&gt;Thank you for your interest. I do not have another column. These are the 2 tables. I can avoid having two row only if I create a table like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;where the headers are the days of the week and each row contains the name of the client and when I have to execute the job for the client.&lt;/P&gt;&lt;P&gt;But with this table, I do not know how to verify in Table1 if the day (Table1[giorno]) when I have executed the job is the day that I have programmed in Table2.&lt;/P&gt;&lt;P&gt;I hope this help to explain better what I want to achieve.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jul 2022 20:38:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2615897#M76058</guid>
      <dc:creator>marabeda</dc:creator>
      <dc:date>2022-07-03T20:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2616779#M76098</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="394622" data-lia-user-login="marabeda" class="lia-mention lia-mention-user"&gt;marabeda&lt;/a&gt;&amp;nbsp;Do you mean something like this in results?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 08:50:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2616779#M76098</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-04T08:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2616886#M76100</link>
      <description>&lt;P&gt;Hi Technolog, yes is correct. Now I try your solution on my original table to check if it works and I let you know.&lt;/P&gt;&lt;P&gt;I am gratefull for you prompt replay.&lt;/P&gt;&lt;P&gt;Marabeda&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 09:26:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2616886#M76100</guid>
      <dc:creator>marabeda</dc:creator>
      <dc:date>2022-07-04T09:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2617015#M76106</link>
      <description>&lt;P&gt;It's better version&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We concatenate by two columns here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source file:&amp;nbsp;&lt;A href="https://1drv.ms/u/s!AiNTN-Usixb7h9JTE5bZIVEGbQGfUQ?e=2PK2tO" target="_blank"&gt;https://1drv.ms/u/s!AiNTN-Usixb7h9JTE5bZIVEGbQGfUQ?e=2PK2tO&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 09:49:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2617015#M76106</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-04T09:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2617543#M76122</link>
      <description>&lt;P&gt;Hi technolog, it works! thank you. I solved first part of the question. The second part is how to show the value in table2[ore] in a column that match client in table1. Can you help? Can I write the same formula?&lt;/P&gt;&lt;P&gt;Many Thx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 13:12:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2617543#M76122</guid>
      <dc:creator>marabeda</dc:creator>
      <dc:date>2022-07-04T13:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2619286#M76228</link>
      <description>&lt;P&gt;Yes, you can use the same formula - only replace Table2 to Table1 and all will work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Text me when it works.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2022 12:48:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2619286#M76228</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-05T12:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2621607#M76385</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="394622" data-lia-user-login="marabeda" class="lia-mention lia-mention-user"&gt;marabeda&lt;/a&gt;&amp;nbsp;is it all right? Are you need more help?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 07:50:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2621607#M76385</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2022-07-06T07:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create a calculated columns from 2 tables</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2621995#M76404</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="394622" data-lia-user-login="marabeda" class="lia-mention lia-mention-user"&gt;marabeda&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am very happy that your problem is solved, please mark it so that more people with the same problem as you can find the answer quickly!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 09:31:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-calculated-columns-from-2-tables/m-p/2621995#M76404</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-07-06T09:31:19Z</dc:date>
    </item>
  </channel>
</rss>

