Showing posts with label product. Show all posts
Showing posts with label product. Show all posts

Monday, March 19, 2012

data presentation at each level

I have a table with Columns as metric id, product name, product id, sales, amount.

The values of the column metric id will be 101, 102, 103 etc..

I need to create a report, in which I need to show up data as below:

1 series -

metric 101:

product name, product id, sales, amount

metric 102:

product name, product id, sales, amount

metric 103:

product name, product id, sales, amount

2 series--

metric 201:

product name, product id, sales, amount

metric 202:

product name, product id, sales, amount

metric 303:

product name, product id, sales, amount

Please let me know, how I can show the rows of that table grouped for each metric id.

Go to your layout, click on the Details row of your table and right-click then select "Edit Group". You should see an area labeled "Group On", if you click the first row there it will bring down a list of fields, pick the field that you want to group by.

Thursday, March 8, 2012

Data Mining Tool

I am new to Data Mining

I downloaded the SQL SERVER 2005 Evaluation Edition.

Question:

For Data Mining which Product Edition of VISUAL STUDIO 2005 i have to download ? ,

You don't need to download/install Visual Studio 2005 separately to use the SQL Server 2005 tools. SQL Server 2005 Setup should install the VS shell components that are used by the design and management tools. Data Mining is available in the Developer, Standard and Enterprise Editions of SQL Server 2005 (the Evaluation version is Enterprise).|||

Hi Raman

WIthin Your Technet webcast 'Intro. to DM with SS2005' you used 'Visual Studio Team' to build the Data Mining demo.

Thats the reason i raised the question.

Your webcast is excellet.

Keep doing more webcase on the DATA MINING.

Thank you very much for your reply.

Rgs - Antony Kumar

|||

Thanks for the feedback, Antony.

The SQL Server design/mgmt tools are hosted in the Visual Studio 2005 shell. If you don't have Visual Studio 2005 installed, SQL Setup installs the base shell components needed. In either case, the user interface that comes up when you open up Business Intelligence Development Studio is the Visual Studio UI. (I just happened to have the full Visual Studio installed on the machine on which I showed the demo in my webcast.)

|||

Hi,

Where can I watch the 'Intro. to DM with SS20" webcast ?

Thanks,

ST

|||

You can find this webcast on-demand here: http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032289986&EventCategory=5&culture=en-US&CountryCode=US

There's also another live version of this webcast coming up on May 12, where you'll be able to ask questions via LiveMeeting:

http://msevents.microsoft.com/cui/WebCastEventDetails.aspx?EventID=1032294887&EventCategory=5&culture=en-US&CountryCode=US

Wednesday, March 7, 2012

data mining 2000

i want show other products when somebody choose a product,

ect:

product1 product2

A B, C ,D

B C,D,E

C F, G

.......

i create model:

I create a mining model:

CREATE MINING MODEL [bh'S]

([Cusid] LONGKEY,

[Products] TABLE PREDICT ([Productid] LONGKEY

)) USING Microsoft_Decision_Trees

INSERT INTO [bh'S]

(SKIP, [Products] (SKIP, [Productid]))

SHAPE

{OPENROWSET(…, 'SELECT DISTINCT "dbo"."customers"."cusid" AS "Cusid" FROM "dbo"."customers" ORDER BY "dbo"."customers"."cusid"')}

APPEND

( {OPENROWSET(…, 'SELECT DISTINCT "dbo"."orderdata"."cusid" AS "UI_GENERATED_PARENT_KEY_COLUMN", "dbo"."products"."productid" AS "Productid" FROM "dbo"."orderdata", "dbo"."orderdetails", "dbo"."products" WHERE (("dbo"."orderdata"."orderid"="dbo"."orderdetails"."orderid") AND ("dbo"."orderdetails"."productid"="dbo"."products"."productid")) ORDER BY "dbo"."orderdata"."cusid"')}

RELATE [Cusid] TO [UI_GENERATED_PARENT_KEY_COLUMN]) AS [Products]

I use DTS to select data:

SELECT FLATTENED

[T1].[Cusid] AS PRODUCTID ,topcount(PREDICT ( [bh].[Products],INCLUDE_STATISTICS),$probability,5) AS ReProductid

FROM

[bh]

PREDICTION JOIN

SHAPE

{

OPENROWSET

(

…,'SELECT "productid" AS "Cusid" FROM "products" ORDER BY "productid"'

)

}

APPEND

(

{

OPENROWSET

(

…,'SELECT "productid" AS "Cusid_1", "productid" AS "Productid" FROM "products" ORDER BY "productid"'

)

}

RELATE [Cusid] TO [Cusid_1]

)

AS [Products]

AS [T1]

ON

[bh].[Cusid] = [T1].[Cusid] AND

[bh].[Products].[Productid] = [T1].[Products].[Productid]

My result

productid1 productid2

1 2372

1 5422

1 1223

...

2 2372

2 5422

2 1223

.....

3 2372

3 5422

3 1223

...

how can i do ?

i can't write predicts(products,5) or predicts([model name].[products],5) . when i run -> error

If you are useing SQL Server 2000, you cannot use the syntax Predict(Products, 5) as that syntax was introduced in SQL Server 2005.

Your query is correct - I would only say that you don't need to bind "cusid" in the prediction query - you don't really need to alias it to "cusid" either.

Is there something else needed? If you want product names rather than ID's, simply build the models using names

|||

i don't need name products . but productid to recomend is loop and almost it only recomend 5 products when you choose any products in market. ( same set in productid_2, when i use predict(....,5) ).

|||

Here's a few things to try:

1: Look at the trees generated by the model - do they show any patterns? It may be the case that the patterns aren't there to examine.

2: Use $AdjustedProbability instead of $Probability. This will favor products that are less likely to occur. For example, if Milk occurs in 99% of all baskets, it will be the #1 item regardless of what is actually in the basket. $AdjustedProbability takes this into account

3: Increase the values of MAXIMUM_INPUT_ATTRIBUTES and MAXIMUM_OUTPUT_ATTRIBUTES to include all the products in your catalog

|||

first:

i can see patterns. but it doesn't predict productid equal 1 to 150 and some other productid. so when i choose productid in (1,....,150) it show same set.

second:

how i increase the values of maximum _ input and output attributes ( i use wizar to create).

data mining 2000

i want show other products when somebody choose a product,

ect:

product1 product2

A B, C ,D

B C,D,E

C F, G

.......

i create model:

I create a mining model:

CREATE MINING MODEL [bh'S]

([Cusid] LONGKEY,

[Products] TABLE PREDICT ([Productid] LONGKEY

)) USING Microsoft_Decision_Trees

INSERT INTO [bh'S]

(SKIP, [Products] (SKIP, [Productid]))

SHAPE

{OPENROWSET(…, 'SELECT DISTINCT "dbo"."customers"."cusid" AS "Cusid" FROM "dbo"."customers" ORDER BY "dbo"."customers"."cusid"')}

APPEND

( {OPENROWSET(…, 'SELECT DISTINCT "dbo"."orderdata"."cusid" AS "UI_GENERATED_PARENT_KEY_COLUMN", "dbo"."products"."productid" AS "Productid" FROM "dbo"."orderdata", "dbo"."orderdetails", "dbo"."products" WHERE (("dbo"."orderdata"."orderid"="dbo"."orderdetails"."orderid") AND ("dbo"."orderdetails"."productid"="dbo"."products"."productid")) ORDER BY "dbo"."orderdata"."cusid"')}

RELATE [Cusid] TO [UI_GENERATED_PARENT_KEY_COLUMN]) AS [Products]

I use DTS to select data:

SELECT FLATTENED

[T1].[Cusid] AS PRODUCTID ,topcount(PREDICT ( [bh].[Products],INCLUDE_STATISTICS),$probability,5) AS ReProductid

FROM

[bh]

PREDICTION JOIN

SHAPE

{

OPENROWSET

(

…,'SELECT "productid" AS "Cusid" FROM "products" ORDER BY "productid"'

)

}

APPEND

(

{

OPENROWSET

(

…,'SELECT "productid" AS "Cusid_1", "productid" AS "Productid" FROM "products" ORDER BY "productid"'

)

}

RELATE [Cusid] TO [Cusid_1]

)

AS [Products]

AS [T1]

ON

[bh].[Cusid] = [T1].[Cusid] AND

[bh].[Products].[Productid] = [T1].[Products].[Productid]

My result

productid1 productid2

1 2372

1 5422

1 1223

...

2 2372

2 5422

2 1223

.....

3 2372

3 5422

3 1223

...

how can i do ?

i can't write predicts(products,5) or predicts([model name].[products],5) . when i run -> error

If you are useing SQL Server 2000, you cannot use the syntax Predict(Products, 5) as that syntax was introduced in SQL Server 2005.

Your query is correct - I would only say that you don't need to bind "cusid" in the prediction query - you don't really need to alias it to "cusid" either.

Is there something else needed? If you want product names rather than ID's, simply build the models using names

|||

i don't need name products . but productid to recomend is loop and almost it only recomend 5 products when you choose any products in market. ( same set in productid_2, when i use predict(....,5) ).

|||

Here's a few things to try:

1: Look at the trees generated by the model - do they show any patterns? It may be the case that the patterns aren't there to examine.

2: Use $AdjustedProbability instead of $Probability. This will favor products that are less likely to occur. For example, if Milk occurs in 99% of all baskets, it will be the #1 item regardless of what is actually in the basket. $AdjustedProbability takes this into account

3: Increase the values of MAXIMUM_INPUT_ATTRIBUTES and MAXIMUM_OUTPUT_ATTRIBUTES to include all the products in your catalog

|||

first:

i can see patterns. but it doesn't predict productid equal 1 to 150 and some other productid. so when i choose productid in (1,....,150) it show same set.

second:

how i increase the values of maximum _ input and output attributes ( i use wizar to create).

data mining

i want to create a model to predict and show products that customers like when customer visit my website

can i know which product that customer like than other products?

can i list products with order by percent (%) customer like for that product?

The "Create a Web Cross-sell Application" article contains details about implementing such a model (http://www.aspnetpro.com/newsletterarticle/2004/10/asp200410ri_l/asp200410ri_l.asp)

You can use the adjusted probability as a percentage. The predictions are ordered by default