<?xml version="1.0" encoding="UTF-8" ?>
<displays>
<display id="07520d40-0136-1000-8001-c0a838011011" type="" style="Chart" enable="true">
	<name><![CDATA[Top 25  Customers By Sales]]></name>
	<description><![CDATA[With multiple breakouts]]></description>
	<tooltip><![CDATA[]]></tooltip>
	<drillclass><![CDATA[null]]></drillclass>
	<CustomValues>
		<LEGEND>true</LEGEND>
		<STYLE>Default</STYLE>
		<THREED>true</THREED>
		<GRID>true</GRID>
		<GRADIENT>true</GRADIENT>
		<TYPE>PIE_MULTI</TYPE>
	</CustomValues>
	<query>
		<sql><![CDATA[WITH
   temp_t1 as (select sum(amount_sold) "Total Sales", cust_id FROM sh.sales
               GROUP BY cust_id
               ORDER BY sum(amount_sold) DESC
              )
SELECT 'Top 25 Customers', cust_id, "Total Sales"
FROM temp_t1
WHERE ROWNUM < 26]]></sql>
	</query>
		<pdf version="VERSION_1_7" compression="CONTENT">
			<docproperty title="" author="" subject="" keywords="" />
			<cell toppadding="2" bottompadding="2" leftpadding="2" rightpadding="2" horizontalalign="LEFT" verticalalign="TOP" wrap="true" />
			<column>
				<heading font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="FIRST_PAGE" />
				<footing font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="NONE" />
				<blob blob="NONE" zip="false" />
			</column>
			<table font="Times New Roman" size="10" style="NORMAL" color="-16777216" userowshading="false" oddrowshading="-1" evenrowshading="-1" showborders="true" spacingbefore="12" spacingafter="12" horizontalalign="LEFT" />
			<header enable="false" generatedate="false">
				<data>
				null				</data>
			</header>
			<footer enable="false" generatedate="false">
				<data value="null" />
			</footer>
			<security enable="false" useopenpassword="false" openpassword="" encryption="EXCLUDE_METADATA">
				<permission enable="false" permissionpassword="" allowcopying="true" allowprinting="true" allowupdating="false" allowaccessdevices="true" />
			</security>
			<pagesetup papersize="LETTER" orientation="1" measurement="in" margintop="1.0" marginbottom="1.0" marginleft="1.0" marginright="1.0" />
		</pdf>
	<display id="null" type="" style="Table" enable="true">
		<name><![CDATA[Customer Info]]></name>
		<description><![CDATA[]]></description>
		<tooltip><![CDATA[]]></tooltip>
		<drillclass><![CDATA[null]]></drillclass>
		<CustomValues>
			<TYPE>horizontal</TYPE>
		</CustomValues>
		<query>
			<sql><![CDATA[SELECT cust_last_name || ', ' || cust_first_name "Name", cust_city "City", cust_state_province "State", sh.countries.country_name "Country"
FROM SH.customers, SH.countries
where sh.customers.country_id = sh.countries.country_id
and cust_id = :CUST_ID]]></sql>
			<binds>
				<bind id="CUST_ID">
					<prompt><![CDATA[CUST_ID]]></prompt>
					<tooltip><![CDATA[CUST_ID]]></tooltip>
					<value><![CDATA[NULL_VALUE]]></value>
				</bind>
			</binds>
		</query>
			<pdf version="VERSION_1_7" compression="CONTENT">
				<docproperty title="" author="" subject="" keywords="" />
				<cell toppadding="2" bottompadding="2" leftpadding="2" rightpadding="2" horizontalalign="LEFT" verticalalign="TOP" wrap="true" />
				<column>
					<heading font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="FIRST_PAGE" />
					<footing font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="NONE" />
					<blob blob="NONE" zip="false" />
				</column>
				<table font="Times New Roman" size="10" style="NORMAL" color="-16777216" userowshading="false" oddrowshading="-1" evenrowshading="-1" showborders="true" spacingbefore="12" spacingafter="12" horizontalalign="LEFT" />
				<header enable="false" generatedate="false">
					<data>
					null					</data>
				</header>
				<footer enable="false" generatedate="false">
					<data value="null" />
				</footer>
				<security enable="false" useopenpassword="false" openpassword="" encryption="EXCLUDE_METADATA">
					<permission enable="false" permissionpassword="" allowcopying="true" allowprinting="true" allowupdating="false" allowaccessdevices="true" />
				</security>
				<pagesetup papersize="LETTER" orientation="1" measurement="in" margintop="1.0" marginbottom="1.0" marginleft="1.0" marginright="1.0" />
			</pdf>
	</display>
	<display id="null" type="" style="Table" enable="true">
		<name><![CDATA[Top 5 Products]]></name>
		<description><![CDATA[]]></description>
		<tooltip><![CDATA[]]></tooltip>
		<drillclass><![CDATA[null]]></drillclass>
		<CustomValues>
			<TYPE>horizontal</TYPE>
		</CustomValues>
		<query>
			<sql><![CDATA[WITH
 temp_t2 AS (SELECT  cust_id, sum(quantity_sold) "QTY", prod_id
             FROM SH.sales
             GROUP BY prod_id, cust_id
             ORDER BY cust_id, sum(quantity_sold) DESC)
SELECT QTY, prod_name "NAME", prod_list_price "List Price"
FROM temp_t2, sh.products
WHERE temp_t2.cust_id = :CUST_ID and ROWNUM < 6
and temp_t2.prod_id = sh.products.prod_id]]></sql>
			<binds>
				<bind id="CUST_ID">
					<prompt><![CDATA[CUST_ID]]></prompt>
					<tooltip><![CDATA[CUST_ID]]></tooltip>
					<value><![CDATA[NULL_VALUE]]></value>
				</bind>
			</binds>
		</query>
			<pdf version="VERSION_1_7" compression="CONTENT">
				<docproperty title="" author="" subject="" keywords="" />
				<cell toppadding="2" bottompadding="2" leftpadding="2" rightpadding="2" horizontalalign="LEFT" verticalalign="TOP" wrap="true" />
				<column>
					<heading font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="FIRST_PAGE" />
					<footing font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="NONE" />
					<blob blob="NONE" zip="false" />
				</column>
				<table font="Times New Roman" size="10" style="NORMAL" color="-16777216" userowshading="false" oddrowshading="-1" evenrowshading="-1" showborders="true" spacingbefore="12" spacingafter="12" horizontalalign="LEFT" />
				<header enable="false" generatedate="false">
					<data>
					null					</data>
				</header>
				<footer enable="false" generatedate="false">
					<data value="null" />
				</footer>
				<security enable="false" useopenpassword="false" openpassword="" encryption="EXCLUDE_METADATA">
					<permission enable="false" permissionpassword="" allowcopying="true" allowprinting="true" allowupdating="false" allowaccessdevices="true" />
				</security>
				<pagesetup papersize="LETTER" orientation="1" measurement="in" margintop="1.0" marginbottom="1.0" marginleft="1.0" marginright="1.0" />
			</pdf>
	</display>
	<display id="null" type="" style="Gauge" enable="true">
		<name><![CDATA[Profits]]></name>
		<description><![CDATA[]]></description>
		<tooltip><![CDATA[]]></tooltip>
		<drillclass><![CDATA[null]]></drillclass>
		<CustomValues>
			<MAX>50000</MAX>
			<QUERY>false</QUERY>
			<MIN>0</MIN>
			<HIGH>20000</HIGH>
			<LOW>5000</LOW>
			<TYPE>STATUSMETER</TYPE>
		</CustomValues>
		<query>
			<sql><![CDATA[SELECT (sum(unit_price) - sum(unit_cost)) Profits, (sum(unit_price) - sum(unit_cost)) Profits2
FROM SH.profits
WHERE cust_id = :CUST_ID
group by cust_id]]></sql>
			<binds>
				<bind id="CUST_ID">
					<prompt><![CDATA[CUST_ID]]></prompt>
					<tooltip><![CDATA[CUST_ID]]></tooltip>
					<value><![CDATA[NULL_VALUE]]></value>
				</bind>
			</binds>
		</query>
			<pdf version="VERSION_1_7" compression="CONTENT">
				<docproperty title="" author="" subject="" keywords="" />
				<cell toppadding="2" bottompadding="2" leftpadding="2" rightpadding="2" horizontalalign="LEFT" verticalalign="TOP" wrap="true" />
				<column>
					<heading font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="FIRST_PAGE" />
					<footing font="Times New Roman" size="10" style="NORMAL" color="-16777216" rowshading="-1" labeling="NONE" />
					<blob blob="NONE" zip="false" />
				</column>
				<table font="Times New Roman" size="10" style="NORMAL" color="-16777216" userowshading="false" oddrowshading="-1" evenrowshading="-1" showborders="true" spacingbefore="12" spacingafter="12" horizontalalign="LEFT" />
				<header enable="false" generatedate="false">
					<data>
					null					</data>
				</header>
				<footer enable="false" generatedate="false">
					<data value="null" />
				</footer>
				<security enable="false" useopenpassword="false" openpassword="" encryption="EXCLUDE_METADATA">
					<permission enable="false" permissionpassword="" allowcopying="true" allowprinting="true" allowupdating="false" allowaccessdevices="true" />
				</security>
				<pagesetup papersize="LETTER" orientation="1" measurement="in" margintop="1.0" marginbottom="1.0" marginleft="1.0" marginright="1.0" />
			</pdf>
	</display>
</display>
</displays>