Archive

Archive for the ‘Report Builder 3.0’ Category

Creating a Basic Candlestick Chart in Report Builder 3.0

May 29th, 2010 Comments off

Candlestick is a pretty useful technical indicator for trading equities. Some people built business around it. And it is pretty straightforward to create candlestick charts in Report Builder 3.0 (RB3.0)  for reporting services. Today I’ll give a five-minute walkthrough of how to do it in RB3.0.

Data Preparation

  1. Download data from Yahoo.
  2. The download is usually a CSV file, save it on disk, use SQL Server Management Studio to import the data into a database table (e.g., table SPY under database AdventureStocks. Make sure that data types of the columns are updated appropriately (the default is string).

Create Report

  1. Start RB3.0, pick “New Report”.6
  2. Create a new data source connecting to the database on localhost.7
  3. Create a dataset from querying the SPY table.8
  4. On RB3.0 canvas, insert chart, select “Candlestick” under “Range” type.9
  5. Drop “Date” to X axis and it will show up in “Category Groups”. 10
  6. Drop “Open” to “Values”.11
  7. Select data series on chart and configure its properties as follows:13
  8. Adjust Minimum and Maximum axis values in Vertical Axis Properties to fit with the OLHC values of SPY.14
  9. Preview the report and it is all set.
Categories: Report Builder 3.0, Reporting Tags:

Building a Foreclosure Map

May 16th, 2010 1 comment

As a fan of data, I track foreclosure numbers as a hobby. Last month, nation wide default notices off by 27 percent, but bank repossessions set new monthly record. I don’t have any more detailed and recent data to plot an interactivity map like the one on NPR, but I managed to find some data from Q3 2009 on RealtyTrac. Let’s see how easy it is to build a map using Report Builder 3.0.

First, we’ll download the data from the source. Start Microsoft Excel and go to “Data”—>”From Web” and enter the URL in the address bar: http://www.realtytrac.com/foreclosure/foreclosure-rates.html. Scroll down to the “US Foreclosure Market Data by State – Q3 2009” table. Click on the arrow to select the table and import data.

image

Second, save the file as an Excel 2000-2003 work book on disc, say, as Q32009ForeClosure.xls on D:\. Create a system data source named “Foreclosure” pointed to this file.

 imageimage

Now, we can launch Report Builder 3.0 to start the Map Wizard. Select “USA by State Inset”. Select defaults on next screen.

image

And pick Color Analytical Map on next screen.

image

Add a new analytical dataset based on data source “Foreclosure”

image

image

image

Run query “select * from [Sheet1$] to make sure that it works.

image

And specify the matching fields for spatial and analytical data. In this case, the field in spatial dataset is “STATENAME” and the field in analytical dataset is “State_Name”.

image

Pick the theme, as well as the field to visualize, and the color rule. Get rid of the legends etc and leave only the color scale on the map. Add title “Foreclosure Map”.

image

Click on the map, a property panel will show up on the RHS. Right click on “Polygon Layer” and select “Polygon Color Rule”. Make sure that the correct data field is picked, start and end colors are right. In the case we have, we’ll start with something red and end it with blue as the smaller the number, the more severe foreclosure condition is in the state. Change the “Distribution” to have 10 subranges, with them starting at 0 and ending at  3000.

image

Want to see some tooltips? Go to “Polygon Properties”—>”General” and add it there. Let’s add something like

   1: ="In "+ Fields!State_Name.Value + ",1 in every " + Fields!ID1_every_X_HH__rate_.Value.ToString() + " house is in some stage of foreclosure process."

image

Hit the “Run” button to get a preview. Hover the mouse on some of the states to check out the tooltips.

image 

In less than five minutes, we build this colorful map visualizing the foreclosure conditions in different states across the US. The completed RDL file along with the Excel data file is available in archived format here.

Data Reference

  1. http://www.microsoft.com/downloads/details.aspx?familyid=6ccd8427-1017-4f33-a062-d165078e32b1&displaylang=en
Categories: Report Builder 3.0, Reporting Tags:

Report Builder 3.0 RTM is Available for Download

May 13th, 2010 Comments off
Categories: Report Builder 3.0, Reporting Tags: