SharePoint Calculated Column with HTML Query - InfoPath Dev
in

InfoPath Dev

SharePoint Calculated Column with HTML Query

Last post 10-30-2012 08:16 PM by Joey_86. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 10-30-2012 08:16 PM

    • Joey_86
    • Top 500 Contributor
      Male
    • Joined on 12-22-2010
    • Sydney
    • Posts 28

    SharePoint Calculated Column with HTML Query

    Hi All,

    I'm just having a bit of trouble creating a calculated column query for what I need, basically I have the following columns:

    - 'Current Status' with the following selections:- In Progress, On Hold, Complete & Withdrawn/Rejected

    - 'Target Age': This is a calculated column which calculates the number of days between the created and target date of an item which also includes negative numbers (

    - 'Overdue': This is also a calculated column identifying the following 'IF([Target Date]="","Blank",IF([Target Date]<=Today,"Yes",IF([Target Date]>=Today,"No")))'

    - 'Status Indicator': This is the calculated I'm having issues with which will display a HTML image marker based on the IF statements

    Now this is the problem I'm having, I need the following scenario's built into the IF statement for the calculated column

    - If the 'Current Status' = 'In Progress' & 'Overdue' = 'No' (Green Marker)

    - If the 'Current Status' = 'Complete' & 'Overdue' = 'No' (Green Marker)  

    - If the 'Current Status' = 'On Hold' & 'Overdue' = 'Yes' (Yellow Marker)

    - If the 'Current Status' = 'On Hold' & 'Overdue' = 'Blank' (Yellow Marker)

    - If the 'Current Status' = 'In Progress' & 'Overdue' = 'Yes' & 'Target Age' < 0 (Red Marker)

    - If the 'Current Status' = 'In Progress' & 'Overdue' = 'Blank' & 'Target Age' < 0 (Red Marker)

    - If the 'Current Status' = 'Withdrawn/Rejected' & 'Overdue' = 'Yes' (Grey Marker)

    - If the 'Current Status' = 'Withdrawn/Rejected' & 'Overdue' = 'Blank' (Grey Marker)

     This is what I have tried already but hasn't seemed to work for the test items I specified: 'IF([Current Status]="In Progress",IF([Overdue]="No","<DIV><IMG SRC='/Pictures/Marker/green.png'></DIV>",IF([Current Status]="On Hold",IF([Overdue]="Yes","<DIV><IMG SRC='/Pictures/Marker/yellow.png'></DIV>",IF([Current Status]="On Hold",IF([Overdue]="Blank","<DIV><IMG SRC='/Pictures/Marker/yellow.png'></DIV>",IF([Overdue]="Yes","<DIV><IMG SRC='/Pictures/Marker/red.png'></DIV>"))))

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.