<?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: Setting Date Parameters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Parameters/m-p/1668609#M34083</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="108403" data-lia-user-login="BICrazy" class="lia-mention lia-mention-user"&gt;BICrazy&lt;/a&gt; , replace VAR COMMISSION with this &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR COMMISSION = if(max('Calendar'[Date]) &amp;lt;date(2021,02,10) ,100,110) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR COMMISSION = calculate(100,filter('Calendar','Calendar'[Date] &amp;lt;date(2021,02,10))) + calculate(110,filter('Calendar','Calendar'[Date] &amp;gt;= date(2021,02,10)))&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 07:24:08 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2021-02-16T07:24:08Z</dc:date>
    <item>
      <title>Setting Date Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Parameters/m-p/1668593#M34082</link>
      <description>&lt;P&gt;Hi there Community,&lt;BR /&gt;&lt;BR /&gt;I need help with a DAX Measure, please.&amp;nbsp; The below measure is working fine, however, I now need to make an amendment to the commission from 100 to 110 from the 1st Feb 2021.&amp;nbsp; Basically, before the 01 Feb 2021, the commission is 100 and on or after 01 Feb 2021, the commission increases to 110.&lt;BR /&gt;&lt;BR /&gt;It would be great if I can insert this as a variable so that I can amend the parameters if needed.&lt;BR /&gt;&lt;BR /&gt;I do have a calendar table that has an inactive relationship to the Mondo Connect Exchange table.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Actual Revenue @R100 Customer Level = 
VAR HISTORICCUSTOMERS = 
CALCULATE(
[Sold to RCS],'Calendar'[IsCurrentMonth] = "NO")

VAR CURRENTMONTHSCUSTOMERS = 
CALCULATE(
    [Sold to RCS],'Calendar'[IsCurrentMonth] = "YES")

VAR TOTALWORKDAYS = 
CALCULATE([Total Days],'Calendar'[IsCurrentMonth] = "YES")

VAR Fraud = 
CALCULATE([Sold to RCS], 'MondoConnectExchange'[Vendor Outcome] = "FRAUD") + 0

VAR COMMISSION = 100

RETURN
((CURRENTMONTHSCUSTOMERS  + HISTORICCUSTOMERS) * COMMISSION)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 07:16:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Parameters/m-p/1668593#M34082</guid>
      <dc:creator>BICrazy</dc:creator>
      <dc:date>2021-02-16T07:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Parameters/m-p/1668609#M34083</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="108403" data-lia-user-login="BICrazy" class="lia-mention lia-mention-user"&gt;BICrazy&lt;/a&gt; , replace VAR COMMISSION with this &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR COMMISSION = if(max('Calendar'[Date]) &amp;lt;date(2021,02,10) ,100,110) &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VAR COMMISSION = calculate(100,filter('Calendar','Calendar'[Date] &amp;lt;date(2021,02,10))) + calculate(110,filter('Calendar','Calendar'[Date] &amp;gt;= date(2021,02,10)))&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 07:24:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Parameters/m-p/1668609#M34083</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-16T07:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Date Parameters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Parameters/m-p/1668620#M34084</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This measure worked perfectly &lt;SPAN&gt;VAR COMMISSION = if(max('Calendar'[Date]) &amp;lt;date(2021,02,10) ,100,110).&amp;nbsp; I just changed the date from&amp;nbsp;(2021,02,&lt;STRONG&gt;10&lt;/STRONG&gt;) to&amp;nbsp;(2021,02,&lt;STRONG&gt;01&lt;/STRONG&gt;).&amp;nbsp; Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 07:37:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Setting-Date-Parameters/m-p/1668620#M34084</guid>
      <dc:creator>BICrazy</dc:creator>
      <dc:date>2021-02-16T07:37:51Z</dc:date>
    </item>
  </channel>
</rss>

