<?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 DAX Formula Conditional on Fiscal Year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Conditional-on-Fiscal-Year/m-p/2753515#M85015</link>
    <description>&lt;P&gt;I have a Calendar table with Fiscal Year column.&amp;nbsp; I'm trying to write a DAX formula to add a value to a measure according to the Fiscal Year.&lt;/P&gt;&lt;P&gt;Cost = IF('Calendar'[Fiscal Year] = 2020, 'Fixed'[Basis] + 20, IF('Calendar'[Fiscal Year] = 2021, 'Fixed'[Basis] + 25,100)&lt;/P&gt;&lt;P&gt;How can I coorect this?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Sep 2022 15:44:13 GMT</pubDate>
    <dc:creator>PaulSB</dc:creator>
    <dc:date>2022-09-07T15:44:13Z</dc:date>
    <item>
      <title>DAX Formula Conditional on Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Conditional-on-Fiscal-Year/m-p/2753515#M85015</link>
      <description>&lt;P&gt;I have a Calendar table with Fiscal Year column.&amp;nbsp; I'm trying to write a DAX formula to add a value to a measure according to the Fiscal Year.&lt;/P&gt;&lt;P&gt;Cost = IF('Calendar'[Fiscal Year] = 2020, 'Fixed'[Basis] + 20, IF('Calendar'[Fiscal Year] = 2021, 'Fixed'[Basis] + 25,100)&lt;/P&gt;&lt;P&gt;How can I coorect this?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 15:44:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Conditional-on-Fiscal-Year/m-p/2753515#M85015</guid>
      <dc:creator>PaulSB</dc:creator>
      <dc:date>2022-09-07T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula Conditional on Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Conditional-on-Fiscal-Year/m-p/2753594#M85020</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="438617" data-lia-user-login="PaulSB" class="lia-mention lia-mention-user"&gt;PaulSB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is [Basis] a measure or a column?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you receiving an error message, or an incorrect result?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 16:19:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Conditional-on-Fiscal-Year/m-p/2753594#M85020</guid>
      <dc:creator>Adescrit</dc:creator>
      <dc:date>2022-09-07T16:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula Conditional on Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Conditional-on-Fiscal-Year/m-p/2754447#M85092</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="438617" data-lia-user-login="PaulSB" class="lia-mention lia-mention-user"&gt;PaulSB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;&lt;SPAN&gt;[Basis] is a measure.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;You can try the following methods&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cost = 
IF (
    SELECTEDVALUE ( 'Calendar'[Fiscal Year] ) = 2020,
    'Fixed'[Basis] + 20,
    IF (
        SELECTEDVALUE ( 'Calendar'[Fiscal Year] ) = 2021,
        'Fixed'[Basis] + 25,
        100
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If&amp;nbsp;&lt;SPAN&gt;[Basis] is a column. You can try the following methods.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Cost 2 = 
IF (
    SELECTEDVALUE ( 'Calendar'[Fiscal Year] ) = 2020,
    SUM('Fixed'[Basis 2]) + 20,
    IF (
        SELECTEDVALUE ( 'Calendar'[Fiscal Year] ) = 2021,
        SUM('Fixed'[Basis 2]) + 25,
        100
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Charlotte&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 06:48:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Conditional-on-Fiscal-Year/m-p/2754447#M85092</guid>
      <dc:creator>v-zhangti</dc:creator>
      <dc:date>2022-09-08T06:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Formula Conditional on Fiscal Year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Conditional-on-Fiscal-Year/m-p/2755182#M85155</link>
      <description>&lt;P&gt;Thank You Charlotte,&amp;nbsp; That does exactly what was required.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 11:11:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Formula-Conditional-on-Fiscal-Year/m-p/2755182#M85155</guid>
      <dc:creator>PaulSB</dc:creator>
      <dc:date>2022-09-08T11:11:58Z</dc:date>
    </item>
  </channel>
</rss>

