If you simply have a table down with dimension attributes you can use something like this: LOOKUP(ATTR([Dimension Name]),-1)<>ATTR([Dimension Name])
Thanks a lot Daniel that helped. I did used lookup(dimesion),1 <>(dimension). Did not used Attr so it was throwing error. I am finding difficulty in understanding what actually Attr is used for and what exactly it is doing here. I have read one more place that while doing datediff function use Attr at end which will make result more accurate. So I am confused what exactly Attr is used for.