<?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: Need help with Dax IF Calculation in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4321803#M171573</link>
    <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Open Vs Effective Date Buckets =
IF (
    ISBLANK ( 'All ServiceNow Data'[Open Vs Effective Date] ),
    "Invalid Effective Date",
    IF (
        'All ServiceNow Data'[Open Vs Effective Date] &amp;lt; 0,
        "Opened Before Effective Date",
        "Opened on/after Effective Date"
    )
)
&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 10 Dec 2024 13:29:49 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2024-12-10T13:29:49Z</dc:date>
    <item>
      <title>Need help with Dax IF Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4321721#M171570</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm pretty new to Dax, and am trying to get an If statement to work - I have 3 outcomes, and the data in the original field is numbers and blanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how far I've gotten but I'm seeing errors with Text vs integer data types.. Can anyone tell me what I need to do to get this to work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Open Vs Effective Date Buckets =&lt;/SPAN&gt; &lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'All ServiceNow Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Open Vs Effective Date]&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;"Invalid Effective Date"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'All ServiceNow Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Open Vs Effective Date]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Opened Before Effective Date"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;"Opened on/after Effective Date"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 12:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4321721#M171570</guid>
      <dc:creator>MeganLouise93</dc:creator>
      <dc:date>2024-12-10T12:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Dax IF Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4321803#M171573</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Open Vs Effective Date Buckets =
IF (
    ISBLANK ( 'All ServiceNow Data'[Open Vs Effective Date] ),
    "Invalid Effective Date",
    IF (
        'All ServiceNow Data'[Open Vs Effective Date] &amp;lt; 0,
        "Opened Before Effective Date",
        "Opened on/after Effective Date"
    )
)
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Dec 2024 13:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4321803#M171573</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-12-10T13:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Dax IF Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4321932#M171579</link>
      <description>&lt;P&gt;Thank you - Unfortunately this is still returning the error "DAX comparison operations do not support comparing values of type Text with values of type Integer. Consider using the VALUE or FORMAT function to convert one of the values."&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":pensive_face:"&gt;😔&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 14:38:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4321932#M171579</guid>
      <dc:creator>MeganLouise93</dc:creator>
      <dc:date>2024-12-10T14:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Dax IF Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4322025#M171586</link>
      <description>&lt;P&gt;Check the type of&amp;nbsp;&lt;SPAN&gt;'All ServiceNow Data'&lt;/SPAN&gt;&lt;SPAN&gt;[Open Vs Effective Date] and make sure it is one of the numeric types, it sounds like it is text at the moment.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 15:07:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4322025#M171586</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2024-12-10T15:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Dax IF Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4323104#M171631</link>
      <description>&lt;P&gt;Thank you for your prompt relpy!&amp;nbsp;johnt75&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="897750" data-lia-user-login="MeganLouise93" class="lia-mention lia-mention-user"&gt;MeganLouise93&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm trying to reproduce your error, w&lt;SPAN&gt;hen the 'Open Vs Effective Date' column type is Text, the error will occur.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can use the following two methods to solve this problem.&lt;BR /&gt;&lt;BR /&gt;First: Change the type from text to number&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Second: Use Value function&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Open Vs Effective Date Buckets = 
IF (
    ISBLANK ( VALUE('All ServiceNow Data'[Open Vs Effective Date] )),
    "Invalid Effective Date",
    IF (
        VALUE('All ServiceNow Data'[Open Vs Effective Date] ) &amp;lt; 0,
        "Opened Before Effective Date",
        "Opened on/after Effective Date"
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&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;
&lt;P&gt;&amp;nbsp;&lt;/P&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;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jayleny&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 07:01:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4323104#M171631</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-11T07:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Dax IF Calculation</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4323551#M171649</link>
      <description>&lt;P&gt;Thank you for your response - Johnt75's solution worked perfectly as I had already amended the fields to numbers &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 10:15:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-help-with-Dax-IF-Calculation/m-p/4323551#M171649</guid>
      <dc:creator>MeganLouise93</dc:creator>
      <dc:date>2024-12-11T10:15:03Z</dc:date>
    </item>
  </channel>
</rss>

