Hello-
Yes, that's the stuff. Keep the actual, non-formatted values in the variables like $Capacity, $Provisioned, etc., and use those variables for the comparison operations. Then, when defining the value for $tablEntry, yes -- use the values and the Get-FriendlyUnit function to add formatting of the values for the output.