<?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: Switch or IIF expression for calculated field in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966003#M20171</link>
    <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/314310"&gt;@kirstenvo&lt;/a&gt;&amp;nbsp;Here is some psuedo code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
  SWITCH(TRUE(),
    ISBLANK([Planned Due Date]) &amp;amp;&amp;amp; [Actual Completion Date] &amp;lt; TODAY(),"Overdue",
    [Planned Due Date] &amp;lt; [Actual Completion Date],"Overdue",
    "On Time"
  )&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 19 Jul 2021 13:26:37 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2021-07-19T13:26:37Z</dc:date>
    <item>
      <title>Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1965964#M20170</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two fields that i want to use to calculate a third field: "Planned due date" and "Actual Completion Date".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to achieve the following:&lt;/P&gt;&lt;P&gt;If Planned Due Date is empty and Actual Completion Date is &amp;lt; Today, then the third column should show "Overdue"&lt;/P&gt;&lt;P&gt;If Planned Due Date &amp;lt; Actual Completion Date then the column should also show "Overdue". otherwise it should show "On Time" .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kirsten&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:18:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1965964#M20170</guid>
      <dc:creator>kirstenvo</dc:creator>
      <dc:date>2021-07-19T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966003#M20171</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/314310"&gt;@kirstenvo&lt;/a&gt;&amp;nbsp;Here is some psuedo code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
  SWITCH(TRUE(),
    ISBLANK([Planned Due Date]) &amp;amp;&amp;amp; [Actual Completion Date] &amp;lt; TODAY(),"Overdue",
    [Planned Due Date] &amp;lt; [Actual Completion Date],"Overdue",
    "On Time"
  )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:26:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966003#M20171</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-07-19T13:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966034#M20173</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;thank you for your quick reply.&amp;nbsp;The expression is not working for me (yet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expression:&amp;nbsp;&lt;/P&gt;&lt;P&gt;=SWITCH(TRUE(), ISBLANK(Fields!PlannedDueDate.Value)&amp;amp;&amp;amp;Fields!ActualCompletionDate.Value&amp;lt;TODAY(),"Overdue",Fields!PlannedDueDate.Value&amp;lt;Fields!ActualCompletionDate.Value,"Overdue","On Time")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I select the Fields (DataSet1) in the catagory, there is where I get this format. I did try to replace "Fields!PlannedDueDate.Value" into [Planned Due Date] etc. but that didn't work either.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:36:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966034#M20173</guid>
      <dc:creator>kirstenvo</dc:creator>
      <dc:date>2021-07-19T13:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966054#M20174</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/314310"&gt;@kirstenvo&lt;/a&gt;&amp;nbsp;First, need to understand if this is a measure or column calculation. If Fields is your table name, then should be 'Fields'[PlannedDueDate] if PlannedDueDate is your column name. Same for the other references. If this is a measure, then you will need aggregators around your columns like: MAX('Fields'[PlannedDueDate]).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is some kind of calculation that is not DAX but being done some other way in your paginated report authoring tool, I don't know the syntax for that.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:46:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966054#M20174</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-07-19T13:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966078#M20175</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;I am quite new to Power BI Report Builder, i have added a Data Set (DataSet1) which contains the fields that i want to use, then I added a table and dragged all the required fields into it one by one.&amp;nbsp; Then I clicked on "Insert Column" where I wanted to show the calculated value.&amp;nbsp; If I right-click on that field and click on expression, I get the pop-up that you see in the screenshot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kirstenvo_0-1626702831433.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/556192iB2405EEB75F3F7F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kirstenvo_0-1626702831433.png" alt="kirstenvo_0-1626702831433.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 13:54:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966078#M20175</guid>
      <dc:creator>kirstenvo</dc:creator>
      <dc:date>2021-07-19T13:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966140#M20176</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/314310"&gt;@kirstenvo&lt;/a&gt;&amp;nbsp;Yeah, what I provided was to create a new column in your dataset using DAX. DAX does not work in Report Builder. Completely different syntax. I recommend this reference as a start:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/sql/reporting-services/report-design/expressions-report-builder-and-ssrs?view=sql-server-ver15" target="_blank"&gt;Expressions (Report Builder) - SQL Server Reporting Services (SSRS) | Microsoft Docs&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 14:26:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966140#M20176</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-07-19T14:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966169#M20177</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/313"&gt;@Greg_Deckler&lt;/a&gt;&amp;nbsp;Thank you for your help so far. I have read the article you send. For me it seems possible to show what i want to show, is it? And if so, are you able to help me with it or do I need to search help somewhere else?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 14:37:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966169#M20177</guid>
      <dc:creator>kirstenvo</dc:creator>
      <dc:date>2021-07-19T14:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966409#M20179</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/314310"&gt;@kirstenvo&lt;/a&gt;&amp;nbsp;Sorry, I can't really help with Report Builder equation stuff. Not my area of speciality. Maybe&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/31"&gt;@TomMartens&lt;/a&gt;&amp;nbsp;or&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/226208"&gt;@mahoneypat&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 17:13:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966409#M20179</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2021-07-19T17:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966495#M20180</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/314310"&gt;@kirstenvo&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I assume that you use a textbox, then this expression maybe provides what you are looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=
IIF(
IsNothing(Fields!PlannedCompletion.Value) And Fields!ActualCompletion.Value &amp;lt; TODAY(),
"over due"
,IIF(Not(IsNothing(Fields!PlannedCompletion.Value)) And Fields!PlannedCompletion.Value &amp;lt;Fields!ActualCompletion.Value , "over due" , "on time") 
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be aware that IsNothing is the name of the ReportingBuilder (SQL Server Reporting Services) function used for inspection instead of IsBlank (a DAX function).&lt;BR /&gt;My data:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 341px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/556317i450D6332117DCB73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hopefully, this provides what you are looking for.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 18:41:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1966495#M20180</guid>
      <dc:creator>TomMartens</dc:creator>
      <dc:date>2021-07-19T18:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1967409#M20188</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/31"&gt;@TomMartens&lt;/a&gt;&amp;nbsp;The expression is working but not showing exactly the right data, in the example below, the two records, the planned completion date is&amp;nbsp; after the actual completion date so the Overdue? column should show "On Time". What do I have to change to the expression to have this shown correctly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kirstenvo_1-1626762860860.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/556613i4FF4E3AD29DE6EF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kirstenvo_1-1626762860860.png" alt="kirstenvo_1-1626762860860.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 06:34:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1967409#M20188</guid>
      <dc:creator>kirstenvo</dc:creator>
      <dc:date>2021-07-20T06:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1968974#M20201</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/314310"&gt;@kirstenvo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my data looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 347px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/557149i031A8939D73974E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the expression:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;=IIF(IsNothing(Fields!PlannedDueDate.Value)
, IIF( Fields!ActualCompletion.Value &amp;gt; Today(), "Overdue", "unexpected")
, IIF( Fields!PlannedDueDate.Value &amp;lt; Fields!ActualCompletion.Value , "Overdue" , "OnTime")
)&lt;/LI-CODE&gt;
&lt;P&gt;alltogether&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/557150i2AF1E5D52F2E78A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hopefully, this provides what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 18:38:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1968974#M20201</guid>
      <dc:creator>TomMartens</dc:creator>
      <dc:date>2021-07-20T18:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1972107#M20230</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/31"&gt;@TomMartens&lt;/a&gt;&amp;nbsp;, Thank you for your help! Planned completion date is never empty, only actual completion date can be empty. I have now figured out the expression below and that one works almost perfect for me :). I now have only one thing to solve and that is that i have an action with the planned completion date and actual completion date on the same day but probably on a different time causing it to say "Overdue". I want the expression to don't look at the time, only the date, can you help me with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kirstenvo_0-1626935859034.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/558263i10C52E800426CCAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kirstenvo_0-1626935859034.png" alt="kirstenvo_0-1626935859034.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My expression now:&lt;/P&gt;&lt;P&gt;= IIF( IsNothing(Fields!ActualCompletionDate.Value) And Fields!PlannedCompletionDate.Value &amp;lt; TODAY(), "Overdue" ,IIF(Fields!ActualCompletionDate.Value &amp;gt; Fields!PlannedCompletionDate.Value , "Overdue" , "On Time") )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kirsten&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 06:37:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1972107#M20230</guid>
      <dc:creator>kirstenvo</dc:creator>
      <dc:date>2021-07-22T06:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1972284#M20233</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/314310"&gt;@kirstenvo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can get rid of the Time part using the function FormatDateTime( ... , DateFormat.ShortDate) like so&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;FormatDateTime(Fields!ActualCompletionDate.Value , DateFormat.ShortDate)&lt;/LI-CODE&gt;
&lt;P&gt;Of course you have to wrap both column references in FormatDateTime &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hopefully, this provides what you are looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jul 2021 07:39:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/1972284#M20233</guid>
      <dc:creator>TomMartens</dc:creator>
      <dc:date>2021-07-22T07:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/2816804#M26589</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;I am working with the formula for a while but I have noticed another problem, I am using the following DAX formula:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Overdue? = &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[ReviewedDate]&lt;/SPAN&gt;&lt;SPAN&gt;) &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;[DueDate]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;TODAY&lt;/SPAN&gt;&lt;SPAN&gt;(), &lt;/SPAN&gt;&lt;SPAN&gt;"Overdue"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[DueDate]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;[ReviewedDate]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Overdue"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[DueDate]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[ReviewedDate]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"On Time"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"On Time"&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;However, lines with the same DueDate and ReviewedDate still show "Overdue".&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;As you can see in the screenshot, there is a record (DocumentID 4477) with DueDate and ReviewedDate on same time. The outcome should be "On Time" but it is "Overdue". Can you help me, what am I missing?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Kirsten&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Oct 2022 12:02:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/2816804#M26589</guid>
      <dc:creator>kirstenvo</dc:creator>
      <dc:date>2022-10-04T12:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Switch or IIF expression for calculated field</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/2816808#M26590</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2022-10-04 140017.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/798140i6D93B7360F6CC011/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2022-10-04 140017.png" alt="Screenshot 2022-10-04 140017.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 12:03:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Switch-or-IIF-expression-for-calculated-field/m-p/2816808#M26590</guid>
      <dc:creator>kirstenvo</dc:creator>
      <dc:date>2022-10-04T12:03:32Z</dc:date>
    </item>
  </channel>
</rss>

