Loading Text Into Analysis Services

I have a string column in a Fact table that I want to show up in my MDX queries. Although I'd normally use member properties for this functionality, because of a data warehousing consideration, I can't go that route. How can I get the column into MDX as a string so that it will show up as a string in my analysis cubes?

It is possible to load text as data into Analysis Services. Because measures can be only numeric, you have to perform a little dimensional modeling to make this approach work. First, you must build an annotation dimension whose Annotation attribute or level is linked to the annotation field in the Fact table. Then, write a calculated measure that, for each cell that the text string will be associated with, retrieves specific Dimension members as a value of the calculated measure. This setup will let Analysis Services expose the string in a cube cell.

You can read a complete step-by-step description of this process in the Microsoft white paper "Handling Annotation and Comments in Analysis Services," (http://www.sqlserveranalysisservices.com/OLAPPapers/Handling%20Comments%20in%20Yukon.htm), and you can read about how to substitute a string for cell coordinates in the article "Cell Annotations," (http://www.sqlserveranalysisservices.com/OLAPPapers/Cell%20Annotations%20in%20AS2005v1.htm).

CLASS="subhead"—Thierry D'hers
Lead Program Manager
SQLBI Program Management

Please or Register to post comments.

IT/Dev Connections

Las Vegas
September 30th - October 4th

Paul ThurottOur Experts will show you:
• Common SQL Server
Problems
• Best Practices for T-SQL
• SQL Server Integration
Services
• Database Development

Come See Mike Otey & Tim Ford in Person!

Early Registration Now Open

From the Blogs
May 9, 2013
blog

My ISO 8601-Compliant Signature 2

My family recently just "officially" announced that we're in the process of adopting a child from South Africa. We're quite excited, of course, but there's a ton of paperwork to do—along with the need for gobs of signatures....More
May 8, 2013
blog

Use SSIS for ETL from Hadoop

In this blog post, Mark Kromer walks you through using SSIS as a way to use ETL techniques using Microsoft's Hadoop on Windows (HDInsight) as a source using Hive connectors...More
Vision road sign
May 6, 2013
blog

Cheaters Never Win, Even in TPC Benchmarks

In this portion of the series on database benchmarking, I want to tell you about one of my favorite aspects of the TPC benchmarks – CHEATING....More
SQL Server Pro Forums

Get answers to questions, share tips, and engage with the SQL Server community in our Forums.