<?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: Conditional Calculated Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Calculated-Column/m-p/2581275#M74069</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- in Power Query, you can add a Custom Column using the following if syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if [&lt;SPAN&gt;Klantnum&lt;/SPAN&gt;] = null then&amp;nbsp;null &lt;BR /&gt;esle if [&lt;SPAN&gt;Personeel.Tarief Categorie&lt;/SPAN&gt;] = "&lt;SPAN&gt;Adviseur" then [Aantal] * #"Tarief Adviser" &lt;BR /&gt;else [Aantal] * #"Tarief coordinator" &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The rates need to be added Query&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Tarief Adviser = let source #"Table2"{0}[Tarief adviseur]&amp;nbsp; in source&amp;nbsp;&lt;BR /&gt;Tarief coordinator = let source #"Table2"{0}[Tarief coordinator]&amp;nbsp; in source&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jun 2022 19:53:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-06-15T19:53:51Z</dc:date>
    <item>
      <title>Conditional Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Calculated-Column/m-p/2581223#M74064</link>
      <description>&lt;P&gt;Hey everyone,&lt;BR /&gt;&lt;BR /&gt;I need help with a calculated column.&lt;BR /&gt;&lt;BR /&gt;I've got two tables. Table one contains the hours employees have worked (Aantal), which project they have worked for (Klantnum.), which role they have. (Personeel.Tarief Categorie)&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;&lt;P&gt;An employee is either an advisor or a coördinator.&lt;BR /&gt;Both have different hour rates. The rates differ per customer (Klantnum.)&lt;BR /&gt;These rates are present in second table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add a calculated column to the first column which does the following:&lt;BR /&gt;If Klantnum. is not null:&lt;BR /&gt;If Personeel.Tarief Categorie = Adviseur, Aantal * Table2.Tarief adviseur&lt;BR /&gt;If Personeel.Tarief Categorie = Coördinator, Aantal * Table2. Tarief coordinator&lt;BR /&gt;If Klantnum. is null:&amp;nbsp;&lt;BR /&gt;Null&lt;BR /&gt;&lt;BR /&gt;With kind regards,&lt;BR /&gt;&lt;BR /&gt;Lazzanova&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 19:14:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Calculated-Column/m-p/2581223#M74064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-15T19:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Calculated-Column/m-p/2581275#M74069</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;- in Power Query, you can add a Custom Column using the following if syntax.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if [&lt;SPAN&gt;Klantnum&lt;/SPAN&gt;] = null then&amp;nbsp;null &lt;BR /&gt;esle if [&lt;SPAN&gt;Personeel.Tarief Categorie&lt;/SPAN&gt;] = "&lt;SPAN&gt;Adviseur" then [Aantal] * #"Tarief Adviser" &lt;BR /&gt;else [Aantal] * #"Tarief coordinator" &lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The rates need to be added Query&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Tarief Adviser = let source #"Table2"{0}[Tarief adviseur]&amp;nbsp; in source&amp;nbsp;&lt;BR /&gt;Tarief coordinator = let source #"Table2"{0}[Tarief coordinator]&amp;nbsp; in source&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 19:53:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Conditional-Calculated-Column/m-p/2581275#M74069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-06-15T19:53:51Z</dc:date>
    </item>
  </channel>
</rss>

