<?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: If function with date to return text issues in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-function-with-date-to-return-text-issues/m-p/2190120#M51172</link>
    <description>&lt;P&gt;Thank you, I just remove "max" and solution works ! thanks for your help !&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 11:04:11 GMT</pubDate>
    <dc:creator>camilleamiel</dc:creator>
    <dc:date>2021-11-15T11:04:11Z</dc:date>
    <item>
      <title>If function with date to return text issues</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-function-with-date-to-return-text-issues/m-p/2190046#M51169</link>
      <description>&lt;P&gt;Hello PBI community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty new in using PBI,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am trying to do a If function with a date to return a text and apparently I have issue with the comparaison of these 2 types of values&lt;BR /&gt;Could you help with my several tests below ?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test 1:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(IS BLANK(&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail])&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Mail à envoyer"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"-"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test 2:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail])=""&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Mail à envoyer"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"-"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;test 3: &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"Mail à envoyer"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"-"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;Camille&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Nov 2021 10:30:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-function-with-date-to-return-text-issues/m-p/2190046#M51169</guid>
      <dc:creator>camilleamiel</dc:creator>
      <dc:date>2021-11-15T10:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: If function with date to return text issues</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-function-with-date-to-return-text-issues/m-p/2190051#M51170</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="338776" data-lia-user-login="camilleamiel" class="lia-mention lia-mention-user"&gt;camilleamiel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test 1 and 2 are same, try this measures:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test 1 &amp;amp; 2 =&amp;nbsp;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(ISBLANK(max(&lt;/SPAN&gt;&lt;SPAN&gt;'BDD projets'[Date envoi mail]))&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Mail à envoyer"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"-"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;Test 3 =&amp;nbsp;&amp;nbsp;IF(max('BDD projets'[Date envoi mail])=today(),"Mail à envoyer","-")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Nov 2021 10:34:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-function-with-date-to-return-text-issues/m-p/2190051#M51170</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-11-15T10:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: If function with date to return text issues</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-function-with-date-to-return-text-issues/m-p/2190120#M51172</link>
      <description>&lt;P&gt;Thank you, I just remove "max" and solution works ! thanks for your help !&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 11:04:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-function-with-date-to-return-text-issues/m-p/2190120#M51172</guid>
      <dc:creator>camilleamiel</dc:creator>
      <dc:date>2021-11-15T11:04:11Z</dc:date>
    </item>
  </channel>
</rss>

