Sharepoint Online Calculated Formulas

 

1. Number of days Calculation from the Date


Json

{

  "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",

  "elmType": "div",

  "txtContent": "=floor((Number(@now)-Number([$In_x0020_Project_x002f_Pool_x002]))/(1000 * 60 * 60 * 24))"

}



2. Total Exp calculation from the Date of Joining 


=IF(ISBLANK(DOJ),"",ROUND((INT((DATEDIF(DOJ,TODAY(),"D")-MOD(DATEDIF(DOJ,TODAY(),"D"),365))/365)+(INT(MOD(DATEDIF(DOJ,TODAY(),"D"),365)/30.44)/12))+[Exp Since DOJ (Y)],1))



Comments

Popular posts from this blog

SPFX setup & deployment

Sites.Selected | Graph API SharePoint Permission

Configure the SharePoint Online App Catalog