Chris Koester

Sr. Data Analytics Consultant in Indianapolis, Indiana

New Blog

My work blog has moved to

If you looking for the family blog, head over to the Space-Farm Continuum

Finding Duplicate Key Values in Tabular/Power Pivot Data Models

Code Syntax Highlighting in Blogs

There are several WordPress plugins that perform code syntax highlighting, but plugins are not permitted in blogs. Thankfully, some syntax highlighting functionality is built in to the platform.

Code syntax highlighting in

Here is an example from one of my posts that shows what it looks like.

Public Function JoinFiscalPeriod(myArray as object) As String

Dim ReturnString as string, Item as string, FirstItem as boolean = true

For each Item in myArray
 If FirstItem = True
 ReturnString = MID(item,34,2)
 ReturnString = ReturnString & ", " & MID(item,34,2)
 End If
 FirstItem = False
Next item

Return ReturnString

End Function

Extracting Friendly Labels from MDX in Reporting Services