<?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: fill column based on other column values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/fill-column-based-on-other-column-values/m-p/3996839#M155373</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;CalculatedColumn =
SWITCH(
    TRUE(),
    'Table'[Code] = "A" &amp;amp;&amp;amp; 'Table'[Names] = "B", 1,
    'Table'[Code] = "C" &amp;amp;&amp;amp; 'Table'[Names] = "D", 2,
    'Table'[Code] = "E" &amp;amp;&amp;amp; 'Table'[Names] = "F", 3,
    'Table'[Code] = "G" &amp;amp;&amp;amp; 'Table'[Names] = "H", 4,
    BLANK()
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: darkblue;"&gt;&lt;EM&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;EM&gt; and help other users find the solution quickly. Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if this comment helps you.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 20:13:01 GMT</pubDate>
    <dc:creator>foodd</dc:creator>
    <dc:date>2024-06-17T20:13:01Z</dc:date>
    <item>
      <title>fill column based on other column values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/fill-column-based-on-other-column-values/m-p/3996827#M155372</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two columns which Code and Names. I want to add a calculated column which should be assigned a number based on a condition that&lt;BR /&gt;if Code = A and Name = B then 1,&lt;/P&gt;&lt;P&gt;if Code = C and Name = D then 2,&lt;/P&gt;&lt;P&gt;if Code = E and Name = F then 3,&lt;/P&gt;&lt;P&gt;if Code = G and Name = H then 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&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;How can I implement this in Power BI?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 19:49:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/fill-column-based-on-other-column-values/m-p/3996827#M155372</guid>
      <dc:creator>bhargavanand</dc:creator>
      <dc:date>2024-06-17T19:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: fill column based on other column values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/fill-column-based-on-other-column-values/m-p/3996839#M155373</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;CalculatedColumn =
SWITCH(
    TRUE(),
    'Table'[Code] = "A" &amp;amp;&amp;amp; 'Table'[Names] = "B", 1,
    'Table'[Code] = "C" &amp;amp;&amp;amp; 'Table'[Names] = "D", 2,
    'Table'[Code] = "E" &amp;amp;&amp;amp; 'Table'[Names] = "F", 3,
    'Table'[Code] = "G" &amp;amp;&amp;amp; 'Table'[Names] = "H", 4,
    BLANK()
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="color: darkblue;"&gt;&lt;EM&gt;If your requirement is solved, please make THIS ANSWER a SOLUTION &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":heavy_check_mark:"&gt;✔️&lt;/span&gt;&lt;EM&gt; and help other users find the solution quickly. Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if this comment helps you.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 20:13:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/fill-column-based-on-other-column-values/m-p/3996839#M155373</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-06-17T20:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: fill column based on other column values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/fill-column-based-on-other-column-values/m-p/3998037#M155494</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="746303" data-lia-user-login="bhargavanand" class="lia-mention lia-mention-user"&gt;bhargavanand&lt;/a&gt;&amp;nbsp;.&amp;nbsp; &amp;nbsp;Thank you for finding my suggestion a Solution for your need.&amp;nbsp;&amp;nbsp;&lt;EM&gt;Please hit the LIKE &lt;/EM&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;EM&gt; button if it has helped you.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 10:53:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/fill-column-based-on-other-column-values/m-p/3998037#M155494</guid>
      <dc:creator>foodd</dc:creator>
      <dc:date>2024-06-18T10:53:46Z</dc:date>
    </item>
  </channel>
</rss>

