<?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: Multiple IF functions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions/m-p/2939104#M96997</link>
    <description>&lt;P&gt;Maybe you should create a new measure like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NameMeasure= IF(CODEDC = D, [Bedrag] *-1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF(CODEDC = C, [Bedrag], BLANK()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you create a table with REKENING and the measure you should be able to see the real amounts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything without a C or D in column CODEDC will not be taken into account.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 14:00:51 GMT</pubDate>
    <dc:creator>henkvankester</dc:creator>
    <dc:date>2022-11-30T14:00:51Z</dc:date>
    <item>
      <title>Multiple IF functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions/m-p/2939011#M96988</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question wrt multiple IF functions in DAX.&lt;/P&gt;&lt;P&gt;The situation is as follows: I have a general ledger table with all the account numbers of a company. Every row in the table represents one transaction that is connected with an amount. This amount is always positive, whether it has a positive or negative impact on a certain account number. There is a colomn which determines the impact (positive or negative), which is the the CODEDC colomn. Here there are two possibilities: D = debit or C = credit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you may know, in accounting there are certain rules&lt;/P&gt;&lt;P&gt;Assets: Debit amounts are positive when you add them up, credit amounts are negative&lt;/P&gt;&lt;P&gt;Debt/Equity: Credit amounts are positive when you add them up, debit amounts are negative&lt;/P&gt;&lt;P&gt;Costs: Debit amounts are positive when you add them up, credit amounts are negative&lt;/P&gt;&lt;P&gt;Income: Credit amounts are positive when you add them up, debit amounts are negative&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to add a column that show the real amounts (ea amounts with the right effect on a certain account). So if this is a cost account (let's say OPEX), when this is a debit amount, the amount should be positive, vice versa.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is an example of a part of the table that is present (where REKENING is the specific account number, BEDRAG = the amount and CODEDC = debit or credit).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first guess would be that I will use a multiple IF function in the formula. Is this correct or is there another more efficient way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance for helping me out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DM0010&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 13:34:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions/m-p/2939011#M96988</guid>
      <dc:creator>DM0010</dc:creator>
      <dc:date>2022-11-30T13:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple IF functions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions/m-p/2939104#M96997</link>
      <description>&lt;P&gt;Maybe you should create a new measure like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NameMeasure= IF(CODEDC = D, [Bedrag] *-1,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;IF(CODEDC = C, [Bedrag], BLANK()))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you create a table with REKENING and the measure you should be able to see the real amounts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything without a C or D in column CODEDC will not be taken into account.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 14:00:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Multiple-IF-functions/m-p/2939104#M96997</guid>
      <dc:creator>henkvankester</dc:creator>
      <dc:date>2022-11-30T14:00:51Z</dc:date>
    </item>
  </channel>
</rss>

