<?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: Select single cell from table to another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399499#M25733</link>
    <description>&lt;P&gt;Congratulations !!!&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="243511" data-lia-user-login="bamba98" class="lia-mention lia-mention-user"&gt;bamba98&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would really appreciate your kudos&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect with me over&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.linkedin.com/in/uditkumarchatterjee/" target="_self"&gt;LinkedIn&amp;nbsp;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://twitter.com/Udit_QuantumX" target="_self"&gt;Twitter&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Mon, 28 Sep 2020 13:38:21 GMT</pubDate>
    <dc:creator>quantumudit</dc:creator>
    <dc:date>2020-09-28T13:38:21Z</dc:date>
    <item>
      <title>Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399278#M25722</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a messy file that i download every quarter. However, that download looks the same every quarter and I would like to upload that file in power bi and create a new table from the current table. In that file, there is a single cell with the name of the period, i want to extract that information into a column in the new table. I.e., the column looks like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the new table, I want the period 2018 Q3 to be visible in the column. I tried to following DAX:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Period = SELECTCOLUMNS('2020Q1';"Period";CONTAINS(VALUES('2020Q1');'2020Q1'[Column3];"2020 Q1"))&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;and i get the following result:&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As you can see, I get True instead of 2018 Q3.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;Does anyone know the correct Dax expresion?&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:52:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399278#M25722</guid>
      <dc:creator>bamba98</dc:creator>
      <dc:date>2020-09-28T11:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399294#M25723</link>
      <description>&lt;P&gt;As far as I understand, it seems you want to automate the process and the period present in that cell is also going to change over time. Correct me if I am wrong in understanding the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would suggest, give a try to &lt;A href="https://docs.microsoft.com/en-us/dax/lookupvalue-function-dax" target="_self"&gt;LOOKUPVALUE()&lt;/A&gt; function and let me know if you got the solution.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:02:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399294#M25723</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2020-09-28T12:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399310#M25724</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219243" data-lia-user-login="quantumudit" class="lia-mention lia-mention-user"&gt;quantumudit&lt;/a&gt;&amp;nbsp;, you understand the problem correctly. However, I don't see how the LOOKUPVALUE would work as there is not reference column....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to have something like this....period = IF COLUMN IN TABLE X CONTAINS CELL WITH "Q1"||"Q2"||"Q3"||"Q4" Return CELL VALUE&lt;/P&gt;&lt;P&gt;In this example, it should return 2018 Q3.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:10:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399310#M25724</guid>
      <dc:creator>bamba98</dc:creator>
      <dc:date>2020-09-28T12:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399428#M25726</link>
      <description>&lt;P&gt;Try this DAX formula to create the "Period" calculated column and let me know if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Period =&lt;BR /&gt;FILTER(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ALL( 'Table'[Messy Column] ),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CONTAINSSTRING(&amp;nbsp; 'Table'[Messy Column] , "Q1" ) ||&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CONTAINSSTRING(&amp;nbsp; 'Table'[Messy Column] , "Q2" ) ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CONTAINSSTRING(&amp;nbsp; 'Table'[Messy Column] , "Q3" ) ||&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CONTAINSSTRING(&amp;nbsp; 'Table'[Messy Column] , "Q4" )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This worked in my case and I hope you will also get a positive outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Assuming that you are always going to have a quarter level of data each time)&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399428#M25726</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2020-09-28T12:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399449#M25728</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219243" data-lia-user-login="quantumudit" class="lia-mention lia-mention-user"&gt;quantumudit&lt;/a&gt;&amp;nbsp;It does not work for me. I get the following error: "The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value."&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:11:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399449#M25728</guid>
      <dc:creator>bamba98</dc:creator>
      <dc:date>2020-09-28T13:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399454#M25729</link>
      <description>&lt;P&gt;If I am not wrong then, you got a single column with messy value and there is only one cell that contains the "Q3" string period value.&lt;/P&gt;&lt;P&gt;The formula will work only if the above condition is met.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:14:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399454#M25729</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2020-09-28T13:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399456#M25730</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219243" data-lia-user-login="quantumudit" class="lia-mention lia-mention-user"&gt;quantumudit&lt;/a&gt;&amp;nbsp;yes correct. I have a table that contains a column. In that column there is only one cell specifying the period. I want to extract that single cell into a column in another table&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399456#M25730</guid>
      <dc:creator>bamba98</dc:creator>
      <dc:date>2020-09-28T13:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399476#M25731</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="243511" data-lia-user-login="bamba98" class="lia-mention lia-mention-user"&gt;bamba98&lt;/a&gt;&amp;nbsp; So, you want that in another table? Not as a column in the same table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, try this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Period = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR Tab = &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;FILTER(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ALL('Table'[Column1]),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CONTAINSSTRING('Table'[Column1],"Q1") ||&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CONTAINSSTRING('Table'[Column1],"Q2") ||&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CONTAINSSTRING('Table'[Column1],"Q3") ||&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;CONTAINSSTRING('Table'[Column1],"Q4") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOOKUPVALUE('Table'[Column1],'Table'[Column1],Tab)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will work when you want the "Period" as a calculated column. It should work if I have understood your requirements correctly. Worked in my case.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:25:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399476#M25731</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2020-09-28T13:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399492#M25732</link>
      <description>&lt;P&gt;It works now! Thanks&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="219243" data-lia-user-login="quantumudit" class="lia-mention lia-mention-user"&gt;quantumudit&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:34:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399492#M25732</guid>
      <dc:creator>bamba98</dc:creator>
      <dc:date>2020-09-28T13:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select single cell from table to another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399499#M25733</link>
      <description>&lt;P&gt;Congratulations !!!&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="243511" data-lia-user-login="bamba98" class="lia-mention lia-mention-user"&gt;bamba98&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would really appreciate your kudos&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect with me over&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.linkedin.com/in/uditkumarchatterjee/" target="_self"&gt;LinkedIn&amp;nbsp;&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://twitter.com/Udit_QuantumX" target="_self"&gt;Twitter&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:38:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Select-single-cell-from-table-to-another-table/m-p/1399499#M25733</guid>
      <dc:creator>quantumudit</dc:creator>
      <dc:date>2020-09-28T13:38:21Z</dc:date>
    </item>
  </channel>
</rss>

