SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Microsoft Time Series - Duplicate Key values and Varchar data not allowed?


Microsoft Time Series - Duplicate Key values and Varchar data not allowed?

Author
Message
Wandrag
Wandrag
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1252 Visits: 1271

Hi,

I'm trying to create a forecast model based on sales figures. But I've ran into a couple of issues.

I've followed a couple of videos - presented by MVP's - based on forecasting, but I'm not able to do what they're doing using my own data.
I'm using Visual Studio 2013 Ultimate addition, and is deploying the data model (or trying to deploy) to a SQL 2014 enterprise edition server. I'm using the Microsoft Time Series model for this.

We have a sales hierarchy within the organisation of - Region/Branch/Sales Team, and the forecasting must be done on each level.


My base table that contains all the data is called AgentDataForeCasts and have the following columns:

SalesMonth - Date - This is the date/month of when the previous sales were made

Region - Varchar - Region of sale

BranchName - Varchar - Branch that made the sale

TeamName - Varchar - Name of the team that done the sale

TotalSalesPersons - int - This is the total of Sales people that worked within the Team. (Active Sales people within SalesMonth, this can change from month-to-month as people resign/hired)

TotalSalesMade - int - The total sales made within the team.

ok - my first issue is:

  1. Key value. In some of the demo videos they've picked more than one Key value. For example the my SalesMonth and Team should be a key value. Every time that I've tried this it will fail with an error stating that I've defined more than 1 key. I've now changed this a bit, and created a unique key based on the SalesMonth and Team. Which is working, but would loved to use the two values within the model directly.

Can this be done somehow? Are there any settings that I've missed?

The second issue is, and one that I simply can't get around is that I'm getting this error when I'm trying to deploy the model:

Error 1 Error (Data mining): The BranchName column of the Agent Data Check Fore Cast model contains a content type that is not supported by the algorithm. The BranchName is a varchar - the Content property is set to Discrete. The total number of branches is 88 - and no null values within this column.

Not sure what I'm missing here....

Thanks in advance!


Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search