<?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: how to get flag value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-get-flag-value/m-p/4307186#M171031</link>
    <description>&lt;P&gt;Thanks for the reply from Rupak_bi and Kedar_Pande, please allow me to provide another insight.&lt;BR /&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You can use the following DAX to create a table that meets your needs.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
ADDCOLUMNS (
    TableB,
    "Flag",
        IF (
            ISBLANK ( LOOKUPVALUE ( TableA[tblAID], TableA[tblAID], TableB[tblBID] ) ),
            0,
            1
        )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dengliang Li&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2024 07:30:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-29T07:30:43Z</dc:date>
    <item>
      <title>how to get flag value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-get-flag-value/m-p/4305663#M170962</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have table table A and table B ... see the below result .. how i can achieve on the based on DAX measuare.&lt;/P&gt;&lt;P&gt;Please check and provide an update&amp;nbsp;&lt;/P&gt;&lt;P&gt;tblA 1,2,3,4,5&lt;BR /&gt;tblB 3,4,9,10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;result&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;tblBID&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Flag&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 28 Nov 2024 07:44:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-get-flag-value/m-p/4305663#M170962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-28T07:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to get flag value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-get-flag-value/m-p/4305795#M170969</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;Here is your solution in a calculated column. this is the simple one. please let me know if you really wanna do this in a measure.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 08:49:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-get-flag-value/m-p/4305795#M170969</guid>
      <dc:creator>Rupak_bi</dc:creator>
      <dc:date>2024-11-28T08:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to get flag value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-get-flag-value/m-p/4305921#M170979</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculated Column:&lt;/P&gt;&lt;PRE&gt;Flag = &lt;BR /&gt;IF(&lt;BR /&gt;tblB[ID] IN DISTINCT(tblA[ID]),&lt;BR /&gt;1,&lt;BR /&gt;0&lt;BR /&gt;)&lt;/PRE&gt;&lt;P&gt;This creates a new column in tblB with the same result.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":love_letter:"&gt;💌&lt;/span&gt; If this helped, a Kudos &lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; or Solution mark &lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt; would be great! &lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Kedar&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/kedar-pande" target="_blank" rel="noopener"&gt;Connect on LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 09:33:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-get-flag-value/m-p/4305921#M170979</guid>
      <dc:creator>Kedar_Pande</dc:creator>
      <dc:date>2024-11-28T09:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to get flag value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-get-flag-value/m-p/4307186#M171031</link>
      <description>&lt;P&gt;Thanks for the reply from Rupak_bi and Kedar_Pande, please allow me to provide another insight.&lt;BR /&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You can use the following DAX to create a table that meets your needs.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
ADDCOLUMNS (
    TableB,
    "Flag",
        IF (
            ISBLANK ( LOOKUPVALUE ( TableA[tblAID], TableA[tblAID], TableB[tblBID] ) ),
            0,
            1
        )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Dengliang Li&lt;BR /&gt;&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2024 07:30:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/how-to-get-flag-value/m-p/4307186#M171031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-29T07:30:43Z</dc:date>
    </item>
  </channel>
</rss>

