<?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: Getting values from a column associated with a value on the same row in PowerBi in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1674932#M34288</link>
    <description>&lt;P&gt;Thank you so much for this. I was hoping to get each value that was associated to the same file id as current set on a seperate row. I would probably need to create a new table and do this? Sorry if i wasnt clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless this would also take a cell thats blank and then I would be able to break down the column by using a comma delimiter to get everything on cell seperated out to their own cells&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 14:27:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-02-18T14:27:33Z</dc:date>
    <item>
      <title>Getting values from a column associated with a value on the same row in PowerBi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1672330#M34197</link>
      <description>&lt;P&gt;What I am trying to do is to get a value on the same row from one column that is associated with a value on another column on the same table.&lt;/P&gt;&lt;P&gt;Currently I have 4 columns. As shown below, I'll call this table the "Objects" table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;file id&lt;/TD&gt;&lt;TD&gt;string id&lt;/TD&gt;&lt;TD&gt;string&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;Current set&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;Current set&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;John D.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;VIEW&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Current set&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="s-table-container"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I am currently trying to find a way where PowerBI looks for the "string id", then find the "file id" associated with the value id.&lt;/P&gt;&lt;P&gt;Finally a new column or table will return all values in the "string" column associated with the file id that it found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, it looks up the "string ID" 200 then finds the "file ID" 60, 30, 25. Once it gets those ID's it will return the values in the "string" column that are associated with the file ID. So in this example it will return everything except the cell that has "VIEW".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried writing an If statement inside of an if statement but that did not work.&lt;/P&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;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;custom_column = IF(Objects[file id] = (IF(Objects[string id]=200, Objects[file id])), Objects[string])&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only returned the value "Current set"&lt;/P&gt;&lt;P&gt;Is there another DAX function I can use to populate a column with the information i need or populate it in a different table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expected outcome would be as follows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if its a different table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;file id&lt;/TD&gt;&lt;TD&gt;string&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;Current set&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;Current set&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;30&lt;/TD&gt;&lt;TD&gt;John D&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;25&lt;/TD&gt;&lt;TD&gt;Current set&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or a custom column next to the original table:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;custom_column&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Current set&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;80%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Current set&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John D.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Current set&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 14:56:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1672330#M34197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-18T14:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from a column associated with a value on the same row in PowerBi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1673218#M34229</link>
      <description>&lt;P&gt;You need to get out of the current filter context for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;custom_column = 
var s = Objects[string id]
var f = SUMMARIZE(filter(Objects,Objects[string id]=s),Objects[file id])
return CALCULATE(CONCATENATEX(Objects,Objects[string],","),All(Objects),Objects[file id] in f)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way your statement "&lt;SPAN&gt;So in this example it will return everything except the cell that has "VIEW"." is not entirely correct.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_50729fc4574fdlbendlin_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 02:39:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1673218#M34229</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-18T02:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from a column associated with a value on the same row in PowerBi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1674932#M34288</link>
      <description>&lt;P&gt;Thank you so much for this. I was hoping to get each value that was associated to the same file id as current set on a seperate row. I would probably need to create a new table and do this? Sorry if i wasnt clear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless this would also take a cell thats blank and then I would be able to break down the column by using a comma delimiter to get everything on cell seperated out to their own cells&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 14:27:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1674932#M34288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-18T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from a column associated with a value on the same row in PowerBi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1674949#M34289</link>
      <description>&lt;P&gt;Show your expected outcome. It is not clear from your description.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 14:31:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1674949#M34289</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-18T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting values from a column associated with a value on the same row in PowerBi</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1675010#M34295</link>
      <description>&lt;P&gt;Again sorry that I was not clear and cause a bit of confusion. I tried replying to your post but I constantly received an error that said invalid html. So i edited my original post to reflect what I expected.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 14:57:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Getting-values-from-a-column-associated-with-a-value-on-the-same/m-p/1675010#M34295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-18T14:57:34Z</dc:date>
    </item>
  </channel>
</rss>

