<?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: lookup boolean value from another table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-boolean-value-from-another-table/m-p/3014340#M102317</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408315" data-lia-user-login="nick9one1" class="lia-mention lia-mention-user"&gt;nick9one1&lt;/a&gt; , try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nominated = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAXX('Lettings Fact_SPVDetails_Summary', int('Lettings Fact_SPVDetails_Summary'[Nominated])),&lt;BR /&gt;FILTER(&lt;BR /&gt;('Lettings Fact_SPVDetails_Summary'),&lt;BR /&gt;[SPV]=('Lettings Fact_Lettings_Summary'[SPV])&amp;amp;&amp;amp;&lt;BR /&gt;[Academic_Year]=('Lettings Fact_Lettings_Summary'[Academic_Year])&lt;BR /&gt;)&lt;BR /&gt;)=1&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jan 2023 15:49:42 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2023-01-11T15:49:42Z</dc:date>
    <item>
      <title>lookup boolean value from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-boolean-value-from-another-table/m-p/3013814#M102267</link>
      <description>&lt;P&gt;I have two tables and using this DAX to import values from one table to the other;&lt;/P&gt;&lt;P&gt;(this works)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total Rooms = 
CALCULATE(
    MAX('Lettings Fact_SPVDetails_Summary'[TotalRooms]),
    FILTER(
        ALL('Lettings Fact_SPVDetails_Summary'),
        [SPV]=Earlier('Lettings Fact_Lettings_Summary'[SPV])&amp;amp;&amp;amp;
        [Academic_Year]=Earlier('Lettings Fact_Lettings_Summary'[Academic_Year])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Most of the values are numerical, but I have a boolean column I also need to bring across (Nominated).&amp;nbsp;&lt;BR /&gt;Calulate obviously does not work with boolean values, so what do I replace it with?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Nominated = 
CALCULATE(
    MAX('Lettings Fact_SPVDetails_Summary'[Nominated]),
    FILTER(
        ALL('Lettings Fact_SPVDetails_Summary'),
        [SPV]=Earlier('Lettings Fact_Lettings_Summary'[SPV])&amp;amp;&amp;amp;
        [Academic_Year]=Earlier('Lettings Fact_Lettings_Summary'[Academic_Year])
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 13:07:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-boolean-value-from-another-table/m-p/3013814#M102267</guid>
      <dc:creator>nick9one1</dc:creator>
      <dc:date>2023-01-11T13:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: lookup boolean value from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-boolean-value-from-another-table/m-p/3014340#M102317</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408315" data-lia-user-login="nick9one1" class="lia-mention lia-mention-user"&gt;nick9one1&lt;/a&gt; , try like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nominated = &lt;BR /&gt;CALCULATE(&lt;BR /&gt;MAXX('Lettings Fact_SPVDetails_Summary', int('Lettings Fact_SPVDetails_Summary'[Nominated])),&lt;BR /&gt;FILTER(&lt;BR /&gt;('Lettings Fact_SPVDetails_Summary'),&lt;BR /&gt;[SPV]=('Lettings Fact_Lettings_Summary'[SPV])&amp;amp;&amp;amp;&lt;BR /&gt;[Academic_Year]=('Lettings Fact_Lettings_Summary'[Academic_Year])&lt;BR /&gt;)&lt;BR /&gt;)=1&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jan 2023 15:49:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-boolean-value-from-another-table/m-p/3014340#M102317</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2023-01-11T15:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: lookup boolean value from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-boolean-value-from-another-table/m-p/3015758#M102400</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408315" data-lia-user-login="nick9one1" class="lia-mention lia-mention-user"&gt;nick9one1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to use LOOKUPVALUE, like this:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Nominated =
LOOKUPVALUE(
    'Lettings Fact_SPVDetails_Summary'[Nominated],
    'Lettings Fact_Lettings_Summary'[SPV],
    [SPV],
    'Lettings Fact_Lettings_Summary'[Academic_Year],
    [Academic_Year]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if the two tables are connected one-many, this shall be enough:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Nominated = RELATED('Lettings Fact_SPVDetails_Summary'[Nominated])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 06:14:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-boolean-value-from-another-table/m-p/3015758#M102400</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-01-12T06:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: lookup boolean value from another table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-boolean-value-from-another-table/m-p/3015823#M102407</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="408315" data-lia-user-login="nick9one1" class="lia-mention lia-mention-user"&gt;nick9one1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I simulated some data to restore your problem, you can use the lookupvalue formula to see the boolean value.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total Rooms = 
LOOKUPVALUE (
    'Lettings Fact_SPVDetails_Summary'[TotalRooms],
    'Lettings Fact_SPVDetails_Summary'[SPV], [SPV],
    'Lettings Fact_SPVDetails_Summary'[Academic_Year], [Academic_Year]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/lookupvalue-function-dax" target="_blank"&gt;LOOKUPVALUE function (DAX) - DAX | Microsoft Learn&lt;/A&gt;&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 _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 06:42:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/lookup-boolean-value-from-another-table/m-p/3015823#M102407</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2023-01-12T06:42:12Z</dc:date>
    </item>
  </channel>
</rss>

