Hi Sameer

Thanks for your reply but it looks like a bit is missing on the decode line? not sure but I can't make it work anyway!

Can you briefly explain what its doing and why you have used cube instead of rollup?

Many thanks,

Ali