Profit Chart Challange
Sep 2, 2007
I have a population of debitors, and I have been using profit charts in SQL server 2005 to decide which and how many debitors to contact in order to maximize revenue on my debitor portefolio. My question is: Is it possible to set the Revenue Per Individual to a dynamic variable(e.g. a percentage of the debitors debt) instead of a fixed revenue?
Best regards
Capgemini Norway
View 1 Replies
ADVERTISEMENT
May 3, 2006
Hi, all here,
I have a question about profit chat (with parameters population, fixed cost, individual cost, revenue), so in what kind of cases or scenarios should we use the profit chart?
Thanks a lot in advance for any guidance.
View 5 Replies
View Related
Nov 28, 2007
Im having some problems with a query Im working on and Ive googled it up and down and Im missing something. I have a subquery and I want the results, which return multiple columns, joined to the current tables. I'll try and explain a little better. One of my fields is called 'Assignee_type' and another is 'Assignee_ID'. Now, depending on the 'Assignee_type' depends on the table it looks up the 'Assignee_ID' in. Which is cool, a simple case statement inside the select. If the Assignee_type = 1 then it looks up the values in the Agent table, if its 2 then it looks in the agency table. Here is the cleaned up, help edition so its easier and cleaner to read: DECLARE @ID INT
SET @ID = 8
--TYPE
-- AGENT = 1
-- AGENCY = 2
SELECT A.ID,
CASE
WHEN A.ASSIGNEE_TYPE = 1
THEN (SELECT AG.AGENT_ID ID,
AG.FIRST_NAME + ' ' + AG.LAST_NAME [NAME]
FROM AGENT AG (NOLOCK)
WHERE AG.AGENT_ID = A.ASSIGNEE_ID)
WHEN A.ASSIGNEE_TYPE = 2
THEN (SELECT AGY.ID,
AGY.[NAME]
FROM AGENCY AGY(NOLOCK)
WHERE AGY.ID = A.ASSIGNEE_ID)
END ASSIGNEE
FROM APPOINTMENT A (NOLOCK)
WHERE A.ID = @id Now if I take a column out of each subquery in case statement, so that it returns only 1, it works fine, but I want possibly up to 10 more fields. I tried Temporary Tables, CROSS APPLY and I cant seem to get it.Any help or suggestions would be great. TIA.
View 5 Replies
View Related
Jun 19, 2005
Can't believe no one has commented on this in here yet. If you're into SQL Server Service Broker (and you are if you are reading this forum), you must go over and take Rushi's Service Broker Challange.
View 1 Replies
View Related
Aug 31, 2004
Hi I am quite struggling to work out how to calculate profit in stored procedure.
The problem is
I have the table:
share name / transaction date/ is it buy or sell / no of shares bought or sold /total cost
I need to calculate how much profit was made on sold shares
The problem is that I need to always assume that you sell shares which were bought first first.
So if I have in chronological order:
tesco buy 50 £200
tesco buy 40 £100
tesco sell 55 £600
profit is
costtobuy of 55 shares: 50 shares at £200 + 5 shares at (£100/40*5 =)£12.50 = £212.50
profit = £600 - £212.5 = £387.50 (too good to be true)
my plan was (if it is too confusing please ignore it and just read the part above)
1 to work out no of shares sold and total cost of sold shares
so
select sum(no of shares) as nosold ,sharename where transaction = sell and sharename= @sharename return noofshares
select sum(totalsold) as totalcostsold , sharename where transaction = sell and sharename = @sharename return totalsold
now i need to loop through buys to work out cost to buy of number of shares sold:
so i need to loop through a table which would have buy transactions only(share name, nobought, totalcost) and check what was the cost to buy of this number of shares:
@nosold(from above table)
@sharename
output totalcosttobuy = 0
if(nobought = nosold) totalcosttobuy = totalcostobuy + totalcost
retrun
else if (nobought>nosold)totalcosttobuy = totalcostobuy + (totalcost/nobought)*nosold
return
else if( nobought<nosold)totalcosttobuy = totalcostobuy + totalcost
nosold = nosold-nobought (go back to beginning of if)
where sharename = @sharename
group by sharename
Well I need this if statement to loop through the rows in the table how can I do that?
Then I can do profit = totalcosttosell - totalcosttobuy
View 4 Replies
View Related
Sep 3, 2015
i am getting error for the mdx query fortotal profitis there any other way to write??????
View 2 Replies
View Related
Nov 4, 2015
How can I get the value (pr_profit / pr_sales ) * 100, (cur_profit / cur_sales) * 100 for %profit. When I am giving zero devide error is coming . How can I give if pr_profit = 0 then % profit should be zero.
SELECT
SUM(CASE WHEN invdate >= {d '2015-01-01' } and invdate <={d '2015-11-03' } Then linetotal Else 0 End) as cur_Sales,
SUM(CASE WHEN invdate >={d '2014-01-01' } and invdate <= {d '2014-11-03' } Then linetotal - linecost Else 0 End) as pr_Profit,
SUM(CASE WHEN invdate >= {d '2015-01-01' } and invdate <={d '2015-11-03' } Then linetotal - linecost Else 0 End) as cur_Profit,
SUM(CASE WHEN invdate >= {d '2015-01-01' } and invdate <={d '2015-11-03' } Then linetotal - linecost Else 0 End) -
[code]...
View 5 Replies
View Related
Mar 26, 2007
Hello All,
I have a reporting services report in the form of a chart. I have two datafields on the chart.
I need to be able to dynamically hide one datafield and view the chart for the other one and vice versa.
How do I do this ?
Any help would be appreciated..
Thanks!
View 4 Replies
View Related
Jul 17, 2014
When I export the report in excel format the chart is displayed as picture. I want it to be displayed as editable chart.Does Office Writer work in this situation and did anyone use Office Writer to accomplish same type of problem.Is there any other method or product we can use instead of the office writer.
View 2 Replies
View Related
Feb 13, 2012
I have a report designed in SSRS 2008 R2.My issue is that the data labels do not stay outside the bars for high values.
View 4 Replies
View Related
Oct 21, 2015
I need to create a chart with the following features
1) Bar chart that has data for 3 years (3 series)
2) Line chart that has the same data as per the above points on the bar chart but this is a running total. (3 series)
3) These data points are for the 12 months
4) there should be a secondary axis for the cumulative one
Can I create this using the same data set?
View 6 Replies
View Related
Mar 27, 2008
Hi Guys..
i don't know weather is it possible or not..but Can any One tell's me How can i refresh the Chart Values.. acutally what's happening..
i have two Chart in a reprot .. One is Main Category and other one is SubCategory... acutally what i want.. in Main Category chart sum of Quantities of Subcategory values comes in bar or any other format.. and when i click on Main chart any bar it's refresh the other chart and return the result of subcategory under that main category in details...
i don't know is this possible .. acutally i m very new in reproting.. infact that's my first report.. so i want to do this.. if any article or any help anyone can provide me..
Thanks
View 1 Replies
View Related
Sep 14, 2007
Hi,
I am not getting Mining Accuracy Chart and Min ing Model Prediction
Plz tel me how to do.And how to use the filter input data used to generate the lift chart and
select predictable mining model columns to show in the lift chart
View 1 Replies
View Related
Apr 2, 2008
Hi,
trying to build Orgchart with MS Access
columns: Name (text), Boss (data source, Name), Phone (int)
the question - how to avoid the "loop"?
1. prohibit choice for the current employee to choose himself as a leader
2. prohibit choice for the current employee to choose any subordinate level employee as a leader
VBA is not an option, we are planning to move this table to MS SQL server, so it should be a choice with "SELECT from Name...." with exceptions or any other checks with warning/error message...?
thank you
Anthony
View 5 Replies
View Related
Feb 18, 2008
Hi there,
I'd like to ask how to approach a chart layout when I have the following table:
|--------------------------------------------------------||[Client Name] | [March 2008] | [April 2008] | [May 2008]|
| Client 1 | 200 | 100 | 500 |
| Client 2 | 150 | 600 | 300 || Client 3 | 540 | 102 | 256 ||--------------------------------------------------------|
And I would like the table to be like the one below:
It seems to me that I have to do some sort of pivot with my dataset/query before I could use it for the chart. Any ideas would be highly appreciated. I really need help with this. Thanks in advanced!
Regards,
Ver
View 3 Replies
View Related
Jun 22, 2007
With 2k5 I am trying to make the "Top N" operator, used in a chart "category," return only N categories. But it almost always returns more than N categories. Can someone explain the nuances of the Top N operator, so I can get past this?
View 6 Replies
View Related
May 4, 2005
Hi All,
I like RS for SQL server.
However, I am surprised (and frustrated) how limited the chart capabilities are; perhaps we have been spoiled by Excel...
Anyway, is there any way to change the color of the chart bars programatically.
I can select different schemas (excel, pastel, grayscale, etc) but I need to go a little bit further, is that much to ask?
Oh, by the way, we can't mix chart styles, can't we?
Need to show a chart and a line in the same report...
I appreciate your help on this, hopefully any answers to my questions might also help with other RS users with the same needs,
Thanks,
L
View 7 Replies
View Related
Nov 8, 2005
Hey all, I'm in a bit of a problem. I have a set of data on an excel spread sheet and i want that data to make a chart on a user form. I figured out how to get a blank chart on the user form but don't know how to link any data. Anyone think they can help?
View 1 Replies
View Related
Mar 8, 2006
Hi folks,
I have a Employee Master table named "Employee_Master". This has got the fields like as follows,
Employee_ID
Employee_Name
Reporting_To
Now I need a query that can help me to build up the organisation chart. I have a query that gives me some data......... Its like
select emp.employee_id,emp.employee_name,
mgr.employee_name as reporting_manager
from employee_master emp ,employee_master mgr
where emp.reporting_to=mgr.employee_id
But the problem with this query is, it gives only 1:1 mapping. And my requirement is to build a tree structure.........
So please help me oput in this regard........
Please lemme know if the problem is not understood to ya guys.......
Waiting for the earliest reply..........
Thanks,
Rahul Jha
View 1 Replies
View Related
Jun 12, 2008
Hi,
Thanks a lot for answering my previous questions.
Here's one more thing that I need. I have my data in one table called as Team_Aggregate.
The fields there are TeamID, Date (1st of every month), Permanent Employeed, Contractor, Open Positions, Total Employees, Max Posns.
Now, when a user selects some months data that he wants to display I want it to appear something like this -
Columns as Month Names (Jan 08 Feb 08...June 08)
Rows as Team Name
and each cell = Team Total for that month and the corresponding team.
Can I do something like this in sql? I want to display the data on the web eventually where I am using Gridview with datasource and databind methods.
Thanks a lot
View 11 Replies
View Related
Mar 19, 2007
Hi,
I have created an area graph.My requirement is the following:-
When the user moves his mouse over the graph on different points, the values corresponding to that points should be shown as a tool tip or as a textbox value.
Any idea to capture the values in the graph(Category,Series and Data values) and display them in a textbox or tool tip in a SSRS chart?
Thanks
Arobind.B
View 2 Replies
View Related
Feb 13, 2007
Is there a Lift chart viewer like the model viewers that can be embedded within your windows apps ? If not, then can this be easily created via Adomd.net api calls ? Has anyone done this easily in custom DM applications ?
Thanks in advance,
anil
View 3 Replies
View Related
Sep 7, 2007
Can you have different scales on a bar chart. I want to chart sales and quantity. Oracle lets you label the top of the bar chart as money and the bottom as quantity.
I am dividing my sales by one million and quantity by one thousand to make them similar in size on the same chart. I am using the sum of the sales/1000000 as a point label. Is there any way to limit the number of decimal places displayed. Currently it is displaying something like 1.94889312043; 1.95M would be better.
Thank you.
View 2 Replies
View Related
Dec 25, 2007
how can i change the language of lift chart for description of vertical axis and horizontal axis and howcan i see the script of this chart for time series algorithm
View 1 Replies
View Related
Mar 3, 2008
Hi All,
I have got a query regarding SSRS report chart control. Can i have a chart with both bars and lines within it?
I have a dataset which has two columns as my outputs.Can i have a chart showing bars for one column and line chart for the other column in the same chart?
I will appreciate if somebody can help me out.
Dinesh
View 3 Replies
View Related
Oct 17, 2007
I created a graph which retrieves value from database.And currently,my axis is in ranged 0-10.But i have a doubt that my value in will exceed my maximum y-axis value 10..My question is, could it be possible that i make my y-axis dynamic??Thanks!!
View 5 Replies
View Related
Aug 22, 2007
Hello,
I am working on generating a Pie Chart in Reporting Services. I want to display percentage (%) in the pie chart slices, rather than having the actual values, since it does not fit properly into charts. A percentage would be better as a report.
Hope the question is clear. I would be grateful to anyone who answers this question.
thanks a lot.
View 5 Replies
View Related
May 12, 2008
Hi,
I have a chart that is created in SSRS with the size property set to '15cm, 8.5cm', I want to set the height based on a parameter that is passed to the chart ( so that it fits onto a 1 page report it is fed through to), I have tried putting =Code.SetChartHeight() in the height property but it brings up an error saying it needs to be in a format like '8.5cm'. The SetChartHeight() function just returns the height parameter + 5.
Does anyone know how I can do this?
Many thanks in advance
View 4 Replies
View Related
Jan 17, 2007
Hai all,
I am generating chart using the Sql Reporting services.I have done 2 charts. when i am clicking one chart it will navigate to another chart.It is happened in reports.
when i used in UI page(web Page). when click the chart it is not navigating to another chart.The same chart will appear when i click the chart.
Can u guys help me soon to solve this problem..
Thanks In advance.
View 1 Replies
View Related
Apr 2, 2008
Hi,
I am using simple line chart in sql server reporting services 2005.
I am showing 4 lines in my chart.I want to change that line colors.
Please help me for this.
Thanks
Shekar
View 7 Replies
View Related
Nov 20, 2007
how can i place a text box on top of a chart.
I placed text box in a chart but while loading the reoport in a asp page the text box comes down to the bottom of the chart.
If anybody knows it,then please help me out.
View 1 Replies
View Related
Apr 29, 2008
Hi All,
I'm trying to figure out, how to create a Top 10 + Others pie chart. Well, I think I wouldn't have the problem if I could write a SQL statement... but I my data source is from SharePoint list like:
<Query>
<SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
<Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
<Parameters>
<Parameter Name="listName">
<DefaultValue>{4FDB998D-31CF-4988-883D-1187ECD12574}</DefaultValue>
</Parameter>
</Parameters>
</Method>
<ElementPath IgnoreNamespaces="True">*</ElementPath>
</Query>
Could someone give me a hint how to do it?
Many thanks in advance.
Nearshore
View 5 Replies
View Related
Dec 27, 2006
I want to display on a Chart the top 5 doctors by claims and show all others as "Others" and what claims they represent Doctor1 = 50 Doctor2= 20 Doctor3= 11 Doctor4=10 Doctor5= 6 all other doctors = 3. How do I do this? BTW I am 50 years old and have been programming since 1982. I have been so blessed by those of you who offer help...I just want to say thank you for those many times that you have come to my aid.
View 4 Replies
View Related