I am trying to create calculated metrics with the following two conditions.
one for a specific ticket tag and the other is for the satisfaction rating with Good, but the data does not return the correct value.
IF ([Ticket tags]="escalated"and [Ticket satisfaction rating]="Good")
THEN [Ticket ID]
ENDIF
Is the metrics are set wrong in this case?



As Chandra has mentioned, it's likely that the 3rd filter that you have in place on the query that uses the custom metric is causing this particular discrepancy. I also just wanted to provide some guidance around how the custom metric should be formatted. Based on our article Reporting on tags, you should try and use the INCLUDES_ANY function instead of the equals operator.
This means your formula should look something like this:
I don't think this should change the result in this particular case, but you should use this function when checking for the existence of tags in your queries moving forward.
If you're able to compare the two queries you have built, using the updated formula, as well as ensuring you have consistent filters across both queries, we can investigate any discrepancies if they continue to be an issue.
Thanks,
Dylan