Forum Discussion

rosamhernandez1's avatar
2 years ago
Solved

Expression.Error: We cannot convert the value #date(2025, 12, 31) to type Logical

good afternoon! I've got the following Custom Column:

 

if [Approved Regulatory ISD] or [Interconnection In Service Date] or [Projected In Service Date] = null then "blank"
else if [Approved Regulatory ISD] & [Interconnection In Service Date] <= [Projected In Service Date] then "Green"
else if [Approved Regulatory ISD] & [Interconnection In Service Date] > [Projected In Service Date] then "Red"
else "Yellow"

 

and I am getting an error:

 

I've verified the data is formatted as a date, but can't resolve the date format error. 

  • Hi rosamhernandez1 

    Rewrite it as below.

    if [Approved Regulatory ISD] = null or [Interconnection In Service Date] = null or [Projected In Service Date] = null then 
        "blank"
    else if [Approved Regulatory ISD] <= [Projected In Service Date] and [Interconnection In Service Date] <= [Projected In Service Date] then 
        "Green"
    else if [Approved Regulatory ISD] > [Projected In Service Date] and [Interconnection In Service Date] > [Projected In Service Date] then 
        "Red"
    else 
        "Yellow"
    


    Let me know if this helps.

    If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

    Follow me on LinkedIn!!!

2 Replies

  • NaveenGandhi's avatar
    NaveenGandhi
    Icon for Memorable Member rankMemorable Member

    Hi rosamhernandez1 

    Rewrite it as below.

    if [Approved Regulatory ISD] = null or [Interconnection In Service Date] = null or [Projected In Service Date] = null then 
        "blank"
    else if [Approved Regulatory ISD] <= [Projected In Service Date] and [Interconnection In Service Date] <= [Projected In Service Date] then 
        "Green"
    else if [Approved Regulatory ISD] > [Projected In Service Date] and [Interconnection In Service Date] > [Projected In Service Date] then 
        "Red"
    else 
        "Yellow"
    


    Let me know if this helps.

    If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

    Follow me on LinkedIn!!!

    • rosamhernandez1's avatar
      rosamhernandez1
      Icon for Helper I rankHelper I

      NaveenGandhi , adjusted the formula to include a third value [Network Upgrades Completion Date], now have to account for "N/A" in this column - we'll still have blanks in the same field, advise?

       

      Project NameProjected In Service DateApproved Regulatory ISDInterconnection Facilities ISDNetwork Upgrades Completion Date
      Warsaw9/30/20249/30/20247/19/2024N/A
      Monroe12/31/202412/31/20241/15/2025 
      Suwannee2/28/2025 11/30/2024 
      Riverside9/25/20258/30/202412/31/2022 
      Elm City9/30/20259/30/20256/30/2025N/A
      Knightdale (Wake)9/30/20259/30/20255/30/20255/30/2025
      Longtown12/31/20259/30/20252/27/2026 
      Nebo12/31/20259/30/20253/31/2026 
      Allen 112/31/202512/31/202510/31/2025 
      Asheville   (fmr. Lake Julian)3/31/20263/31/20258/15/202512/1/2024
      Craggy3/31/20263/31/202612/1/2025N/A
      New Hill12/31/2026 6/30/20266/2/2025
      Powerline3/1/2027 6/1/2029 
      Williamsboro6/30/2027 3/31/2031 
      Coleridge9/30/2027 3/31/2031 
      Riverbend10/1/2027 5/21/2027N/A
      Mayo12/31/2027 3/31/2031 
      Wilkes12/31/2027 10/1/202710/1/2027
      HF Lee4/1/2028 6/2/202812/2/2029
      HF Lee 210/1/2028 4/2/2029 

       

      if [Approved Regulatory ISD] = null or [Interconnection In Service Date] = null or [Projected In Service Date] = null then

          "blank"

      else if [Approved Regulatory ISD] <= [Projected In Service Date] and [Interconnection Facilities ISD] <= [Projected In Service Date] and [Network Upgrades Completion Date] <= [Projected In Service Date] then

          "Green"

      else if [Approved Regulatory ISD] > [Projected In Service Date] and [Interconnection In Service Date] > [Projected In Service Date] and [Network Upgrades Completion Date] > [Projected In Service Date] then

          "Red"

      else

          "Yellow"