<?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: New Column based on values in another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3058065#M105569</link>
    <description>&lt;P&gt;I was trying to create a conditional column for this - but i guess you can't use a different table for conditional column.&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 02 Feb 2023 14:16:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-02-02T14:16:39Z</dc:date>
    <item>
      <title>New Column based on values in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3045877#M104673</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My end user wants to see Null in the Approver field if the Invoice Status is 'Paid' - and wants to see the Approver (field value) if the Invoice Status is other than 'Paid'.&amp;nbsp; Invoice Status and Approver are in two different tables.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was trying a conditional col - but don't think i can go to another table in that.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also trying a calculated col -&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Revised-Approver = &lt;/SPAN&gt;&lt;SPAN&gt;If&lt;/SPAN&gt;&lt;SPAN&gt;('Invoice Header'[Invoice status] = "Paid"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;" "&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;('LZ_Groups_Users Owner'[Approver]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Don't think it is giving me the correct result.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also tried a measure - but did not get the right results.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I was greatly appreciate your suggestions.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Many Thanks!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Jan 2023 18:27:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3045877#M104673</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-26T18:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: New Column based on values in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3045933#M104677</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can try this, but this would only work if you have a relationship set between your Invoice Header and&amp;nbsp;&lt;SPAN&gt;LZ_Groups_Users Owner tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Revised-Approver = if ('Invoice Header'[Invoice Status] = "Paid", BLANK(), RELATED('LZ_Groups_Users Owner'[Approver]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you use MAX the value will be the same for all that's not Paid, and it will be the last Approver on your table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Jewel&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 19:00:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3045933#M104677</guid>
      <dc:creator>jewel_at</dc:creator>
      <dc:date>2023-01-26T19:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: New Column based on values in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3046033#M104683</link>
      <description>&lt;P&gt;Thanks Jewel.&amp;nbsp; I appreciate it.&lt;/P&gt;&lt;P&gt;there is a one to many relationship between the LZ groups users owner table and the Invoice Header table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From LZ Groups Users Owner to Invoice - 1 direction.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will this work? I've tried it but not getting the right result.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 19:55:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3046033#M104683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-26T19:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: New Column based on values in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3047266#M104796</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just confirming, is your relationship primary key set as Owner ID? And did you create the new column in the Invoice Header table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've attached a sample test .pbix here:&lt;/P&gt;&lt;P&gt;&lt;A title="Condition Get from Related table" href="https://1drv.ms/u/s!AOgdyzw9T9hOjTI" target="_self"&gt;Condition Get from Related table&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great too if you can give us your sample data and screenshot of your model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Jewel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 13:20:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3047266#M104796</guid>
      <dc:creator>jewel_at</dc:creator>
      <dc:date>2023-01-27T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: New Column based on values in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3047696#M104831</link>
      <description>&lt;P&gt;Hi Jewel,&lt;/P&gt;&lt;P&gt;It is working fine.&amp;nbsp; THANK YOU!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 16:52:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3047696#M104831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-27T16:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: New Column based on values in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3047761#M104839</link>
      <description>&lt;P&gt;Nice!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 17:55:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3047761#M104839</guid>
      <dc:creator>jewel_at</dc:creator>
      <dc:date>2023-01-27T17:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: New Column based on values in another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3058065#M105569</link>
      <description>&lt;P&gt;I was trying to create a conditional column for this - but i guess you can't use a different table for conditional column.&lt;/P&gt;&lt;P&gt;Is that correct?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 14:16:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-Column-based-on-values-in-another-table/m-p/3058065#M105569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-02T14:16:39Z</dc:date>
    </item>
  </channel>
</rss>

