<?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 criteria in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-criteria/m-p/1647637#M33528</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , A new column like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if([order number] in {"O1", "O2"}, 8,10)&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 10:21:53 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-02-05T10:21:53Z</dc:date>
    <item>
      <title>New column based on criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-criteria/m-p/1647620#M33526</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;I have this table (a lot bigger, but just simplifying it), and a want to create a new column that is called "New provision fee %".&lt;BR /&gt;The provisionfee for order number O1 and O2 should really be 8, and the rest should be 10 (unchanged). Could somone help me with a formula for this column? Or is it possible to go and edit the data table precentages manually in some way?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 10:06:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-criteria/m-p/1647620#M33526</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-02-05T10:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: New column based on criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-criteria/m-p/1647637#M33528</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , A new column like &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if([order number] in {"O1", "O2"}, 8,10)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 10:21:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-criteria/m-p/1647637#M33528</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-05T10:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: New column based on criteria</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-criteria/m-p/1647638#M33529</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you want to do this in Dax you could use the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NewProvisionPerc =
SWITCH (
    TRUE (),
    TestTable[Order number] IN { "O1", "O2" }, 8,
    TestTable[Provision%]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, if possible you might want to solve this in the data source, or in Power query, since the DAX method will add a new column to your model next to the old one (unnecessary bulk). Via Power Query you could solve it with a conditional column. Once you have this new column the old one can be removed:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 10:23:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/New-column-based-on-criteria/m-p/1647638#M33529</guid>
      <dc:creator>timg</dc:creator>
      <dc:date>2021-02-05T10:23:58Z</dc:date>
    </item>
  </channel>
</rss>

