Quantcast
Viewing all articles
Browse latest Browse all 1341

How to make Calculated members dynamic

I have the below query which calculated Percentage cost of my chemical, My dimenssions which are mentioned [Custom Batch Data].[EcolabTextileId].[EcolabTextileId],[Custom Batch Data].[EcolabTextile].[EcolabTextile]are changed dynamically , so i want to make a generic query so that i dont need to repaeat the With member for different dimenssionsSo any one can help me to find the wayWITH member [Chemical Mix %] as'([Custom Batch Data].[EcolabTextile].CurrentMember,[Measures].[Price])/([Custom Batch Data].[EcolabTextile].CurrentMember.Parent,[Measures].[Price]) * 100' select NON EMPTY ({[Measures].[Price],[Measures].[Totalweight],[Chemical Mix %],[Measures].[NoofLoads]}) ON Columns, NON EMPTY ([Custom Batch Data].[EcolabTextileId].[EcolabTextileId],[Custom Batch Data].[EcolabTextile].[EcolabTextile]) ON ROWS FROM [TCDReport]

Viewing all articles
Browse latest Browse all 1341

Trending Articles