SQLBI is a blog dedicated to building Business Intelligence solutions with SQL Server
Sometimes there is a simple way to solve an issue. For example, if you want to color all measures (including calculated measures) in red when the value is negative, you can simply write:
SCOPE( Measures.AllMembers );
FORE_COLOR(THIS) = IIF( Measures.CurrentMember < 0, 255, 0); // 255 = RED
END SCOPE;
MDX Script is so better than classical properties for each measure in these cases...
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using
About Marco Russo (SQLBI)
Marco Russo is a consultant, writer and trainer specialized in Business Intelligence with Microsoft technologies.
He runs the SQLBI.EU website, which is dedicated to distribute resources useful for BI developers, like Integration Services components, Analysis Services models, tools, technical information and so on.
Marco is certified as MCT, MCDBA, MCSD.NET, MCSA, MCSE+I.