官术网_书友最值得收藏!

Creating an attribute-only report

You've done a great job until now, and it's time to see some results. I know reports are still two chapters away, and we have a long journey to get there: but here we just want to take a sneak peek at how they work. Remember what we said; that we're just building SELECT statements. So it's perfectly legal to create queries that only involve attributes. A very quick one could be the list of countries in our database.

Getting ready

You need to have completed the previous recipes (and exercises) to continue.

How to do it...

Let's do our first report!

  1. Look for a folder named My Personal Objects and click on it.
  2. Double-click on My Reports.
  3. In the right pane, right-click and choose New | Report.
  4. In the following dialog box leave Blank Report selected and click on OK.
  5. Here comes the Report Editor. We will have plenty of time to look at this window, but now just concentrate on the left pane that says My Shortcuts.
  6. Click on the yellow Attributes shortcut icon to see the list of available attributes.
  7. Right-click on Country and select Add to Rows. That's it.
  8. From the View menu, select Grid View to run the report. The result is as shown in the following image:
  9. Click on Save and Close naming the report 01 Countries list.

How it works...

When you add an attribute on the rows of a report, MicroStrategy reads in the metadata where the attribute ID and DESC come from, and then issues a query to the data warehouse with the proper SELECT statement. Once the result is returned the data is displayed on the screen according to the default report display forms that we specified in the Attribute Editor. The ID is not shown on the grid but it is actually retrieved from the dimension table.

There's more...

Just out of curiosity, inside My Reports folder, double-click on the 01 Countries list icon to execute the report you just saved.

When the grid appears double-click on a country, for example, France, what happens?

Now double-click again on Orleans 45000, what do you see? Great! You just drilled down the Geography hierarchy. No need to create extra reports, MicroStrategy knows its way around dimensions. You can close these two new reports without saving them.

Note

You can watch a screencast of this operation at:

主站蜘蛛池模板: 定兴县| 汪清县| 登封市| 宜君县| 新兴县| 马鞍山市| 离岛区| 温宿县| 营山县| 安泽县| 广汉市| 永新县| 红河县| 鄂伦春自治旗| 乌苏市| 乌拉特中旗| 礼泉县| 科技| 泰宁县| 马关县| 台东县| 乌鲁木齐市| 观塘区| 波密县| 正蓝旗| 林州市| 贵定县| 翼城县| 南宫市| 葵青区| 全椒县| 松原市| 大石桥市| 晋城| 久治县| 竹溪县| 安塞县| 巩义市| 宣化县| 南郑县| 和平县|