Hi @baijumohan, we’ve noticed that no response has been received from you since January 16, 2020. We just want to check if you still need further help with this post? In case there won’t be any activity on it in the next few days, we’ll be tagging this post as Solved. If you have a follow question or concern related to this topic, please remove the Solution tag first by clicking the three dots beside Reply and then untick the checkbox. Thanks!
The reason you are getting this error is that FILTER on its own produces a table, not a scalar. If the result of your measure is not a scalar, it will throw that error message. There are two ways to handle this - you can either apply a function to the table, such as COUNTROWS, that returns a scalar value, or you can materialize that statement into a physical table using
With regard to the former approach, I definitely recommend checking out this video, which provides some great techniques for debugging measures involving virtual tables, such as yours: