Sets or returns the number format string for the PivotTableField.

 public System.String NumberFormat{ get; set; }
Public Property NumberFormat() As String

This property cannot be set on CalculatedFields and will return and empty string. You can check if a PivotTable field is calculated field with the IsCacluatedField property