<?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 column with DAX using paramters as identifier for column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3721455#M144928</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think it is not possible in DAX to reference dynamically columns in calculatd tables because they always need to have data copied. I think If you want this you will need to copy all the columns AA, BB, CC and then you can dynamically reference this new calculated table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;</description>
    <pubDate>Sat, 24 Feb 2024 23:02:42 GMT</pubDate>
    <dc:creator>StrategicSavvy</dc:creator>
    <dc:date>2024-02-24T23:02:42Z</dc:date>
    <item>
      <title>create column with DAX using paramters as identifier for column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3704732#M144109</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to copy a column using DAX. The problem is that the column is selected as a parameter.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Nummer AA&amp;nbsp; &amp;nbsp; BB&amp;nbsp; &amp;nbsp; CC&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;123&lt;/TD&gt;&lt;TD&gt;111&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/T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p;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;11&lt;/TD&gt;&lt;TD&gt;1233&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;654&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;TD&gt;1455&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;543&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;14&lt;/TD&gt;&lt;TD&gt;1566&lt;/TD&gt;&lt;TD&gt;777&lt;/TD&gt;&lt;TD&gt;432&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;888&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;TD&gt;1788&lt;/TD&gt;&lt;TD&gt;1788&lt;/TD&gt;&lt;TD&gt;321&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;17&lt;/TD&gt;&lt;TD&gt;1899&lt;/TD&gt;&lt;TD&gt;1110&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have defined a field parameter containing the column names "AA", "BB" and "CC". The column is selected by this parameter.&lt;/P&gt;&lt;P&gt;There is another table (T2) containing only the numbers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to define a new column in T2 that contains the values of the selected column?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My final goal is to copy 2 columns and compare the values. Any idea to do this without the creation of the columns is highly wellcome. I want to present a table visual containing both selected columns and a column for comparison.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any help or hint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PeRoma&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2024 20:27:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3704732#M144109</guid>
      <dc:creator>PeRoma</dc:creator>
      <dc:date>2024-02-16T20:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: create column with DAX using paramters as identifier for column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3706072#M144173</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="412763" data-lia-user-login="PeRoma" class="lia-mention lia-mention-user"&gt;PeRoma&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please try this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CalculatedTable = 
ADDCOLUMNS(
    SUMMARIZE(T1, T1[Nummer]),
    "SelectedValue", SWITCH(TRUE(),
        SelectedColumn = "AA", CALCULATE(SUM(T1[AA])),
        SelectedColumn = "BB", CALCULATE(SUM(T1[BB])),
        SelectedColumn = "CC", CALCULATE(SUM(T1[CC])),
        BLANK()
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 18 Feb 2024 16:13:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3706072#M144173</guid>
      <dc:creator>Sahir_Maharaj</dc:creator>
      <dc:date>2024-02-18T16:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: create column with DAX using paramters as identifier for column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3721385#M144918</link>
      <description>&lt;P&gt;Hi Sahir,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;But sorry, this does not answer my question. My goal to copy&amp;nbsp; the column into table T2. All the values.&lt;BR /&gt;If I e.g. select column "AA" from table T1- at run time by any means I want to copy only this column into table T2. The problem is, I don't know how to reference a column dynamically with a parameter, measure or by any other means. This referenced column should then be copied into table T2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other words: I have no problem to reference columns within DAX by just naming them. But I want to reference to a column that is only selected at run time. And I want to copy this column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your effort. Do you have any idea based on this explanation?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;peroma&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 20:05:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3721385#M144918</guid>
      <dc:creator>PeRoma</dc:creator>
      <dc:date>2024-02-24T20:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: create column with DAX using paramters as identifier for column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3721455#M144928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think it is not possible in DAX to reference dynamically columns in calculatd tables because they always need to have data copied. I think If you want this you will need to copy all the columns AA, BB, CC and then you can dynamically reference this new calculated table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 23:02:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3721455#M144928</guid>
      <dc:creator>StrategicSavvy</dc:creator>
      <dc:date>2024-02-24T23:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: create column with DAX using paramters as identifier for column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3721897#M144943</link>
      <description>&lt;P&gt;Hi Savvy,&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp;I was afraid that this would not be possible. But gave me some hope that I can reach my final goal: My goal is, to compare the columns. In the example above there would be TRUE for row 4, 9 and 16 when comparing AA wigh BB. Is it possible to do this comparison e.g. via function EXACT and reference the columns at run time?&lt;/P&gt;&lt;P&gt;Thank you once more for your reply.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;peroma&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 13:04:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3721897#M144943</guid>
      <dc:creator>PeRoma</dc:creator>
      <dc:date>2024-02-25T13:04:16Z</dc:date>
    </item>
    <item>
      <title>Re: create column with DAX using paramters as identifier for column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3721935#M144946</link>
      <description>&lt;P&gt;Hi PeRoma,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think with this goal in mind you can use measure with 2 parametes defined in disconnected table.&lt;/P&gt;&lt;P&gt;Here is the screenshot:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached pbix:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1CbcK9erUvMcMJ6jFqvS-6OTR9LdRrTSt/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1CbcK9erUvMcMJ6jFqvS-6OTR9LdRrTSt/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&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;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My LinkedIn:&amp;nbsp;&lt;A href="http://www.linkedin.com/in/lukasz-kozdron" target="_blank" rel="noopener nofollow noreferrer"&gt;www.linkedin.com/in/lukasz-kozdron&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 14:00:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/create-column-with-DAX-using-paramters-as-identifier-for-column/m-p/3721935#M144946</guid>
      <dc:creator>StrategicSavvy</dc:creator>
      <dc:date>2024-02-25T14:00:19Z</dc:date>
    </item>
  </channel>
</rss>

