Purely from the syntax perspective, - you are using single quotes, while you need double quotes to signify "search".
However, I think there is a deeper problem in trying to select ims_org_id and at the same time, to try and count the same field in your condition. I suspect that your count always returns 1 because it should be evaluated separately for each ims_org_id.
If you could explain the logic of your condition - what are you trying to accomplish, perhaps someone could offer a better solution
The count of the ims_org_id seems to be working okay.
Ultimately I am trying to produce a chart that compares the % of Customers to the % of Sales...so I could see if 20% of my customers were driving 80% of my business. The chart I want to create would have one dimension (Percent - predefined points where we want to see the % of Sales...my requirement is 1%,5%,20%,50%...these values are loaded within an inline view) and % of Sales (which requires the Cumulative Sales expression as the numerator).
The Cumalative Sales expression is trying to determine the Sales for the top n% of customers. For example:
# of customers = 1000 and total sales =2,000,000
20% of my customers =200
Rank the customers by Sales descending and sum the Sales values for the first 200 customers (lets say that equals 1,000,000)
So % of Sales would equal 1,000,000 / 2,000,000 = 50%