<?xml version="1.0" encoding="utf-8"?>
<!--
 unified.xml - a report with static slides, OLAP, and SQL
 The different generation models can be combined in one
 manifest, allowing presentations to be created which 
 combine bullet slides, data-driven slides, and slides
 from your presentation library.

 Also in this manifest is an example of having the
 data for a slide embedded in the manifest instead
 of coming from a query.

-->
<slideset>
	<template>repository/ppt/landscape_dark_c.ppt</template>
	<slide type="coverpage">
		<title>Unified Presentation Manifest</title>
		<subtitle>A report with static slides, OLAP, and SQL</subtitle>
	</slide>
	<slide type="static">
		<title>The title for this slide</title>
		<notes>The notes for this slide</notes>
		<slideurl>repository/ppt/bullet2_257.ppt</slideurl>
	</slide>
	<slide type="bullet">
		<title>This is a generated bullet-point slide</title>
		<content>
			<p>This make a bullet</p>
			<p>And this does also</p>
			<p>One more here</p>
		</content>
	</slide>
	<slide type="static">
		<title>This is a bar graph slide</title>
		<notes>The notes for this slide</notes>
		<slideurl sid="313">repository/ppt/bar_313.ppt</slideurl>
	</slide>
	<slide type="bar" PlotBy="Column">
		<title>Unit Sales by Promotion Media Type (data in manifest)</title>
		<notes>This one had the data come directly from the manifest
		instead of from a query.</notes>
		<columns>
			<headingheading>Promotion Media</headingheading>
			<heading format="#,#">Unit Sales</heading>
		</columns>
		<row>
			<heading>Daily Paper, Radio, TV</heading>
			<cell value="9513">9,513</cell>
		</row>
		<row>
			<heading>Daily Paper</heading>
			<cell value="7738">7,738</cell>
		</row>
		<row>
			<heading>Product Attachment</heading>
			<cell value="7544">7,544</cell>
		</row>
		<row>
			<heading>Daily Paper, Radio</heading>
			<cell value="6891">6,891</cell>
		</row>
		<row>
			<heading>Cash Register Handout</heading>
			<cell value="6697">6,697</cell>
		</row>
		<row>
			<heading>Sunday Paper, Radio</heading>
			<cell value="5945">5,945</cell>
		</row>
	</slide>
	<slide type="bar" PlotBy="Column">
		<title>Number of Orders By Customer</title>
		<notes>Notes about report</notes>
		<query type="sql">
		SELECT CustomerID, COUNT(*) AS NumberOfOrders
		FROM Orders
		GROUP BY CustomerID
		HAVING COUNT(*) &gt; 15
		ORDER BY NumberOfOrders
		FOR XML RAW
		</query>
	</slide>
	<slide type="packedbar" PlotBy="Column">
		<title>Total orders and spend (in thousands) by customer</title>
		<notes>Notes about report</notes>
		<query type="sql">
		SELECT c.CustomerID, 
			SUM(od.quantity*od.unitprice)/1000 as TotalSpend,
			COUNT(DISTINCT od.OrderID) as TotalOrders
		FROM Customers c, [Order Details] od, Orders o
		WHERE Year(orderdate) = 1998 
			AND c.CustomerID = o.CustomerID
			AND o.OrderID = od.OrderID
		GROUP BY c.CompanyName, c.CustomerID
		HAVING COUNT(DISTINCT od.OrderID) &gt; 5
		ORDER BY c.customerid
      FOR XML RAW
		</query>
	</slide>
	<slide type="bar" PlotBy="Column">
		<title>Top 10 Most Expensive Products</title>
		<notes>Notes about report</notes>
		<query type="sql">
		SELECT TOP 10 Products.[ProductName], Products.[UnitPrice] 
		FROM Products 
		ORDER BY Products.[UnitPrice] DESC
		FOR XML RAW
		</query>
	</slide>
	<slide type="bar" PlotBy="Column">
		<title>Unit Sales by Promotion Media Type</title>
		<notes>S1 Made axis scale thousands and made axis number
		currency. I don't know if these are worth automating.</notes>
		<query type="mdx">
			WITH
				MEMBER Measures.[$Unit Sales] 
					AS 'Measures.[Unit Sales]', FORMAT_STRING = '#,#'
			SELECT 
				{
				[Measures].[$Unit Sales]
				}
				ON COLUMNS, 
				ORDER(
					EXCEPT(
						[Promotion Media].[Media Type].MEMBERS,
						{[Promotion Media].[Media Type].[No Media]}
					),
					[Measures].[$Unit Sales],
					DESC
				)
				ON ROWS
			FROM [Sales]
		</query>
	</slide>
	<slide type="textbox">
		<title>Units Shipped and Ordered by Store</title>
		<notes>S2 heading row should be different - bold, orange?</notes>
		<query type="mdx">
			SELECT
				{
				[Measures].[Units Shipped],
				[Measures].[Units Ordered]
				}
				ON COLUMNS,
				NON EMPTY
					[Store].[Store Name].MEMBERS
				ON ROWS
			FROM [Warehouse]
		</query>
	</slide>
</slideset>

