Can you share sample data to get results
Your question requires few more inputs to get solved in the forum.
I understood you are looking for count the "OK" with respect to some other Dimension.
We use the count function to get the solution for your question.
sum(if [Dimension] ="OK" then 1 else 0 end )