How to model this situation?
Hi experts,
I am BW 3.5. I am working with PS. I need to model the next example:
Project 1
Hs. % (Hs*%) % Real
Phase 1 37.2
Sub Phase 1 37.2
Sub Sub Phase 1 42.8
Ítem 1 10 0% 0(10 * 0 / 100) 0%
Ítem 2 5 100% 5 (5 * 100 / 100) 100 %
Ítem 3 20 50% 10(20 * 50 / 100) 50 %
Sub Sub Phase 2 0.33
Ítem 1 15 10% 1.5(15 * 10 / 100) 1.5 %
Ítem 2 25 50% 12.5(25* 50 / 100) 12.5 %
Ítem 4 15 30% 4.5(15 * 30 / 100) 4.5 %
This is a hierarchy!!!
The Sub Sub Phase X percentage is: ((Hs*%)/100) / Hs
Hs (Hs*%)
Item 1 10 0(10 * 0 / 100)
Item 2 5 5(5 * 100 / 100)
Item 3 20 10(20 * 50 / 100)
Total 35 15
Sub Sub Phase 1 % = 15 / 35 = 42.8
The Sub Phase X percentage is: ((Hs*%)/100) / Hs
Hs (Hs*%)
Item 1 10 0 (10 * 0 / 100)
Item 2 5 5 (5 * 100 / 100)
Item 3 20 10 (20 * 50 / 100)
Item 1 15 1.5(15 * 10 / 100)
Item 2 25 12.5(25* 50 / 100)
Item 4 15 4.5(15 * 30 / 100)
Total 90 33.5
Sub Sub Phase 1 % = 33.5 / 90 = 37.22
and so on....
Help me please and thanks.
Apple has provided a tutorial that you can run through here:
http://developer.apple.com/cocoa/coredatatutorial/index.html
I have found their tutorials a great starting place for getting a simplified introduction to the new technologies.
If you're still having trouble modeling your data after you read that, let us know.
15.2" MacBook Pro Core 2 Duo 2.33GHz Mac OS X (10.4.8) WAY faster than my PowerBook G4
Similar Messages
-
In the sample data below, there are rows that contain header names, followed by a row with the data.
The problem is that some of the "header" column values change. They represent "sizes" boxes.
Name | BoxType | Color | Qty | 45 | 11 | 13.5
Compx | F | Red | 32 | 1 | 0 | 34
Name | BoxType | Color | Qty | 75 | 11 | 12.5
QuickMartZ | G | Blue | 68 | 13 | 7 | 77
Name | BoxType | Color | Qty | 75 | 11 | 45
QuickMartZ | F | Blue | 22 | 17 | 72 | 12
How could I model this data or re-shape it into a schema such as
Table
=========
AccountName
BoxType
Color
Qty
Size
Ultimately I need to be able to extract a "rolled up" count of the boxes by size and their quantity
Something like this
AccountName
BoxType
Color
Qty_Size1
Qty_Size2
Qty_Size3
Qty_Size4
Qty_Size5
Qty_SizeN...Without some value which links the two rows together (other than the order of rows how do we know the box in the line above Compx belongs to it?) I don't think this is going to be possible as a set based solution.
You could use a cursor to move through the rows RBAR:
DECLARE @table TABLE (name VARCHAR(20), boxType VARCHAR(20), color VARCHAR(20), qty VARCHAR(4), col1 INT, col2 INT, col3 FLOAT)
INSERT INTO @table (name, boxType, color, qty, col1, col2, col3)
VALUES
('Name', 'BoxType', 'Color', 'Qty', 45, 11, 13.5),
('Compx', 'F', 'Red', '32', 1, 0 , 34),
('Name', 'BoxType', 'Color', 'Qty', 75, 11, 12.5),
('QuickMartZ', 'G', 'Blue', '68', 13, 7 , 77),
('Name', 'BoxType', 'Color', 'Qty', 75, 11, 45),
('QuickMartZ', 'F', 'Blue', '22', 17, 72, 12)
DECLARE @name VARCHAR(20), @boxType VARCHAR(20), @color VARCHAR(20), @qty VARCHAR(4), @col1 INT, @col2 INT, @col3 FLOAT,
@pname VARCHAR(20), @pboxType VARCHAR(20), @pcolor VARCHAR(20), @pqty VARCHAR(4), @pcol1 INT, @pcol2 INT, @pcol3 FLOAT
DECLARE @products TABLE (name VARCHAR(20), boxType VARCHAR(20), color VARCHAR(20), qty VARCHAR(4), size1 FLOAT, size2 FLOAT, size3 FLOAT)
DECLARE @boxes TABLE (name VARCHAR(20), boxType VARCHAR(20), size1 FLOAT, size2 FLOAT, size3 FLOAT)
DECLARE c1 CURSOR
FOR SELECT *
FROM @table
OPEN c1
FETCH c1 INTO @name, @boxType, @color, @qty, @col1, @col2, @col3
WHILE @@FETCH_STATUS <> -1
BEGIN
IF @name = 'name'
BEGIN
SET @pname = @name
SET @pboxType = @boxType
SET @pcolor = @color
SET @pqty = @qty
SET @pcol1 = @col1
SET @pcol2 = @col2
SET @pcol3 = @col3
END
IF @name <> 'name'
BEGIN
INSERT INTO @products (name, boxType, color, qty, size1, size2, size3) VALUES (@name, @boxType, @color, @qty, @col1, @col2, @col3)
INSERT INTO @boxes (name, boxType, size1, size2, size3) VALUES (@name, @boxType, @pcol1, @pcol2, @pcol3)
END
FETCH c1 INTO @name, @boxType, @color, @qty, @col1, @col2, @col3
END
CLOSE c1
DEALLOCATE c1
SELECT *
FROM @products
SELECT *
FROM @boxes -
"You can download past purchases on this computer with just one Apple ID every 90 days. This computer can be used with a different Apple ID in 63 days." How to handle this situation
https://discussions.apple.com/message/16567363#16567363
From the More Like This section on the right -
I can't get anything to print from my ipad mini since I did the software update. It recognizes the printer, but nothing happens when I tap print. Can anyone help with this situation? Thanks!
Hi Justinescc,
The bottom of this article contains some steps you can try if you're unable to AirPrint:
AirPrint Basics
http://support.apple.com/kb/HT4356
Cheers,
- Ari -
Hello experts,
Need help modelling the below data into Cubes:
Sales Extractor:
Has 30 fields including:
Sales Doc: Sales Order Item: Config no.: Plant: Material: Customer Group: etc
85252 10 1 4525 0001 Engine 10
Options Extractor:
Sales Doc: Sales Order: Item Config No.: Characteristic Name: Char Value:
85252 10 14525 Alternator ALT
85252 10 14525 Alternator ALT02
85252 10 14525 Valve 3
(there maybe up to 100 characteristics for each Sales Doc)
I have each extractor going into an ODS.
Now I am not sure what to do next?
For example I would want to run a report to see what Characteristics where sold to which customer group, so I need to bring both the ODS's together and then combine with a Cube (for Territory management from CRM).
Do you have any ideas how I could design this
Any help is much appreciated
Many Thanks
HelenHi there,
Thanks for your responses but I am still trying to get my head around how I would bring both extractors together
These are the extractors:
Sales Extractor
Has 30 fields including:
Sales Doc: Sales Order Item: Config no.: Plant: Material: Customer Group: etc
85252 10 1 4525 0001 Engine 10
Options Extractor:
Sales Doc: Sales Order: Item Config No.: Characteristic Name: Char Value:
85252 10 14525 Alternator ALT
85252 10 14525 Alternator ALT02
85252 10 14525 Valve 3
Want to bring both together so that I can see the sales details per option
eg How many ALT's are sold in Plant 0001?
At the moment both are coming into ODS? do I build another ODS? use Infoset?etc
Many Thanks for looking at this, really appreciate any advise
Helen -
Need advise on how to model this rule
Hi,
I got stuck in modelling some rule. I will try to paint the picture using some example:
Assume the following entities (and relations)
the child (the children)
the toy (the childs toys)
the cupboard (the cupboards)
I would like to construct a boolean saying that all children can store their most favorite toy in the best cupboard
What I have tried so far:
I have inferred a relation for the best cupboard.
I also inferred a relation for the most favorite toy of a child.
Now I get stuck. What should be the way to do this? Is it possible? I have the feeling I am missing something. It might be versy simple, but I am relative new to OPA.
Any help is very much appreciated.
Cheers,
Han JoostenHi Han,
When I first had a go at this, I had several inferred relationships and it got complicated, so I tried to simplify it down to minimal inferred relationships. Here's what I did...
Entities and Relationships
Containment Relationships
Global --> one-to-many --> the child (relationship text: the children)
the child --> one-to-many --> the child's toy (relationship text: the child's toys; reverse text: the toy of the child)
Global --> one-to-many --> the cupboard (relationship text: the cupboards)
Inferred Relationships
the cupboard --> many-to-many --> the child's toy (relationship text: the cupboard's toys)
Note: Before you can write rules associating two different entities, you need to set up a relationship between them in the Properties file.
Rules
Determine the best cupboard...
I made up a number attribute 'the cupboard's priority'. The best cupboard is the one with the lowest priority number, i.e. the cupboard with priority 1 beats the cupboard with priority 2.
the cupboard is the best cupboard if
the cupboard's priority = the priority number of the top cupboard
the priority number of the top cupboard = InstanceMinimum(the cupboards, the cupboard's priority)
If you wanted to reverse the priority logic so that the highest number is the 'best', use InstanceMaximum instead.
Determine the favourite toy...
Similar approach with the toys:
the child's toy is the favourite toy if
the child's toy's priority = the priority number of the child's top toy
the priority number of the child's top toy = InstanceMinimum(the child's toys, the child's toy's priority)
Put the favourite toy of each child in the best cupboard...
Write a membership rule to associate the child's toys and the cupboards:
the child's toy is a member of the cupboard's toys if
the cupboard is the best cupboard and
ForScope(the toy of the child)
the child's toy is the favourite toy
Procedural rules to tie it all together...
The rules above do all the tricky logic work. If you want a Global level rule which ties it all together, you could add procedural rules, e.g.
the appropriate cupboard has been determined for all the favourite toys if
ForAll(the children, the child's favourite toy has been determined) and
ForAll(the cupboards, it is known whether or not the cupboard is the best cupboard)
the child's favourite toy has been determined if
ForAll(the child's toys, it is known whether or not the child's toy is the favourite toy)
Test case
I tried the following test scenario, which worked as expected.
Inputs
Child: Bart
Toys: Krusty Doll (priority 1), Television (priority 2)
Child: Lisa
Toys: Saxophone (priority 1), Malibu Stacy (priority 2)
Cupboard: Cupboard A (priority 1)
Cupboard: Cupboard B (priority 2)
Results
Cupboard A is the best cupboard
Instances of 'the child's toy' associated with Cupboard A: Krusty Doll, Saxophone
Cupboard B is not the best cupboard
No instances of 'the child's toy' associated with Cupboard B.
Further comments
If each child can have multiple 'favourite' toys (all of which can go in the best cupboard), then make 'the child's toy is the favourite toy' a base level attribute. Any toy where 'the child's toy is the favourite toy'=true will be associated with the best cupboard, i.e. Cupboard A in the scenario above.
Depending on what else you need to do, it may be worth creating an inferred relationship for 'the child's favourite toys', e.g.
the child's toy is a member of the child's favourite toys if
IsMemberOf(the child's toy, the child's toys) and
the child's toy is the favourite toy
Cheers,
Jasmine -
How to model this scenario?
hi experts,
i want to extract hr person administration infomation to bw, i have 2 idea and cann't determine which one is suitable.
1. extract each infoType(such as pa0001, pa9001...) into seperate cube in bw, and join these cube by infoset(the customer view info cross infotype).
the point is now i have put 8 cubes/infoObjects into the infoset and i am very worry about the performance.
2.create a generic dataSource from the infoset based on the HR logical database PNP, and extract the data to BW, that sounds better.
but i want to make the dataSource delta enable, and how to set the delta field in the infoset? which field should i set? for example, the infoset join the pa9001,pa9002, pa9003. each of these pa tables has the field of update date, which one should i set for the delta field?
thanks a lot in advanced, any advice will assign pointHave you checked personnel admin objects e.g. 0PA_C01, 0PAPA_C02 etc? In my opinion these cubes give maximum information.
Check following:
http://help.sap.com/saphelp_nw70/helpdata/en/63/351e3c6a2fc036e10000000a114084/frameset.htm -
My Mac Book Pro (Retina) was printing in colour on a shared printer at the office. It is now printing in Black and White with a very grainy blurred image. Will the ColorSync Utility be of any help? The colour option isn't in the print prompt when printing from iphotos. Any advice would be appreciated. thank you
Hello Courious7,
It sounds like you are unable to print in color but it used to work without issue. Assuming no changes have been made to the printer by the IT department, these troubleshooting steps should lead you to a resolution:
Troubleshooting printer issues in OS X
http://support.apple.com/kb/ts3147
Follow these steps until the issue is addressed:
Make sure that the printer is powered on, has ink / toner, and that there are no alerts on the printer’s control panel. Note: If you cannot clear an alert on the printer's control panel, stop here and check the printer's documentation or contact the manufacturer for support.
Ensure the printer is properly connected to a USB port on the Mac or AirPort base station / Time Capsule. If the printer is a network-capable printer, make sure that it is properly connected to your home network.
Use Software Update to find and install the latest available updates. If an update is installed, see if the issue persists.
Open the Print & Scan pane or Print & Fax (Snow Leopard) pane in System Preferences.
Delete the affected printer, then add the printer again.
If the issue persists, try these additional steps:
Reset the printing system, then add the printer again.
If the issue still persists, reset the printing system again. Download and install your printer's drivers. Then, add the printer again.
Contact the printer vendor or visit their website for further assistance.
Thank you for using Apple Support Communities.
Regards,
Sterling -
How to model a conversion table for unit of measures?
Hi
I am looking for some input on how to model a many-to-many relationship.
The situation:
A fact table with columns:
Product
Unit of Measure
Date
Value
1 product is stored with 1 and only 1 unit of measure - e.g. Product = Oil, unit of measure = m3
The fact contains several products, each having its own unit of measure.
A dimension 'Unit of measures' with columns
Unit Of Measure
Unit Of Measure Name
Measure System
While reporting on the facts it should be possible to chose the unit of measure I want to see my facts in. E.g. I want to be able to show Oil-production in m3 or barrels or liters, etc.
My challenge:
How to model this requirement?
Right now I tend to go for a bridge table between the fact and the dimension.
But I was wondering:
a) are there other ways to model it
b) are there pitfalls in using Bridge tables?
c) Can I re-use the bridge table in combination with other facts as the model grows?
c.2) do I need to create an alias on the bridge table to re-use it?
Thanks for your help
regards
AndyHi Kart,
ok let's say my model looks like this (columns below the tables names, sample in brackets) - again ignoring a date dimension:
Dim_Product --- 1:n --- Fact ----- n:1 ----- Dim_UOM
Id (1,2) Prod_id Id (1,2,3)
Name (Oil, Gas) UOM_id Name (m3, Barrel, Litre)
Value
So the products are coming from the Dim_product, Unit_of measures coming from Dim_UOM.
Fact values would look like this
Prod_id UOM_id Value
1 1 10
1 2 84
1 3 10000
etc
If I need to report in a new measure, I would be forced to add a new record to the fact table
Prod_id UOM_id Value
1 1 10
1 2 84
1 3 10000
1 4 150
with 4 being the new measure id.
What I am looking for is a way to be more flexible when it comes to converting values to different measures.
Thanks
Regards
Andy -
How to model multiple parent hierarchy in obiee
hi,
I have product hierarchy with multiple parents for a single level. and i want to display all the levels of hierarchy at a same time.
Below mentioned is wht data i am getting from product table in OLTP
current product diamension
root1--level 1
child product1--level 2
child product2--level 3
child product3 ----level 4
and
root2----level 1
child product4----level 2
child product2----level 3
child product3 ----level 4
If u see we have child product2 belongs to two diff hierarchies.
My report req is i want to show all the levels of product in single row.Some thing like
Mb no. level 1 level 2 level 3 level 4
123 root1 CP1 Cp2 CP3
123 root2 CP4 CP2 CP3
How to model this scanario in OBIEE?H,
Refer this
http://oraclebizint.wordpress.com/2007/11/30/oracle-bi-ee-101332-one-dimension-multiple-hierarchies/
http://www.rittmanmead.com/2010/11/oracle-bi-ee-11g-parent-child-hierarchies-multiple-modeling-methods/
Thanks
Deva -
Iam using I phone 5. I have changed my Password and it works. Iam unable to updaye MY apps. Here it is not taking my Passowrd. how to solve this situation,Please advise.
On the computer go to iTunes>Perferences>Advanced and change the entry for where the music is located.
-
How to model a text field 2000 chars long.Thanks in advance
Hi All,
There is a field for Account object called comments.This field is of Varchar nature and length is 2000 chars.The field is in CRM system.I need to map it to BW.How to model this field as attribute of Account Infobject.Is it as atext?If so can i declare it as a char.will it hold 2000 chars
Thanks.If you want get this 2000 chars into BW , We need create 34 Attribures and split the 2000 chars into 60...60 in tranfer rule.
By
CCC -
How to crack this Big question
Hi...All....
I am planing to launch my career in SAP SD. I have got 2 years of experience in the SALES and SERVICE field. I am planing to take up the course in SAP SD. But I have seen every SAP SD job requirement as prior experience in IMPLEMENTATION is SAP SD module or SUPPORT experience. Guide me how to overcome this situation.......How to match with the experience of real time implementation or support. What I have to do...
Regards,
Shashavali.Hi,
All Organization looking for whose having the good experiance like Implimentaion and Support, because ot In Implimenation should know ASAP method, as well as Clint intaraciton, If you have experiance in Implementiaon then only you would have get good knowldge abt variace industry business process.
Better to join any organization as Fresher then you will get a chance to Both.
All the best..
Regard
Raja -
I purchased new computers twice within the same year because they were damaged in a storm. However, I can't deauthorize/reauthorize the new computers because it has been less than a year. How do I deal with this situation?
BrianBlaze wrote:
I have 3 Computers at home, I am studying computer sciences and am constantly rerformatting my computers, installing windows and linux over and over again.... EVERYTIME I reformat I have to authorize the same computer and so it takes up one of my 5 authorized computers... Anyways after deauthorizing all my computers in september I was not aware I couldn't do it for another year (why does APPLE assume these stupid tactics prevent piracy). Anywysw I need to reach apple and have them make it so I can do it again. I had a similar problem with Playstation and when I called them they fixed it for me... even windows (which you can only have one serial per computer) made it easy because all I had to do was call them and they fixed it for me. Now I need APPLE to do the same and this is the only place I could see to actually say what is going on... I can't believe I have to do this with my iPhone... I wanted an mp3 player and a phone together and if I can't put new songs until September 20, 2012 I am going to freak out!
HELP!
Brian
Try this link: http://www.howtogeek.com/howto/23974/beginner-deauthorize-all-computers-associat ed-with-your-itunes-account/ -
Any ideas on how to do a local mirror for this situation?
I'm starting a project to allow ArchLinux to be used on a Cluster environment (autoinstallation of nodes and such). I'm going to implement this where I'm working right now (~25 node cluster). Currently they're using RocksClusters.
The problem is that the connection to internet from work is generally really bad during the day. There's a HTTP proxy in the middle. The other day I tried installing archlinux using the FTP image and I took more than 5 hours just to do an upgrade + installing subversion and other packages, right after an FTP installation (which wasn't fast either).
The idea is that the frontend (the main node of the cluster) would hold a local mirror of packages so that when nodes install use that mirror (the frontend would use this also, because of the bad speed).
As I think it should be better to only update the mirror and perform an upgrade not very often (if something breaks I would leave users stranded until I fix it), I thought I should download a snapshot of extra/ and current/ only once. But the best speed I get from rsync (even at night, where an HTTP transfer from kernel.org goes at 200KB/s) is ~13KB/s this would take days (and when it's done I would have to resync because of any newer package that could have been released in the meantime).
I could download extra/ and current/ at home (I have 250KB/s downstream but I get like ~100KB/s from rsync), record several CDs (6!... ~(3GB + 700MB)/700MB) but that's not very nice. I think that maybe this would be just for the first time. Afterwards an rsync would take a lot less, but I don't know how much less.
Obiously I could speed things a little If I download the full ISO and rsync current using that as a base. But for extra/ I don't have a ISOs.
I think this is a little impractical (to download everything) as I wouldn't need whole extra/ anyways. But it's hard to know all packages needed and their dependencies to download only those.
So... I would like to know if anyone has any ideas on how to make this practical. I wouldn't wan't my whole project to crumble because of this detail.
It's annoying because using pacman at home, always works at max speed.
BTW, I've read that HOWTO that explains how to mount pacman's cache on the nodes to have a shared cache. But I'm not very sure if that's a good option. Anyway, that would imply to download everything at work, which would take years.V01D wrote:After installation the packages that are in cache are the ones from current. All the stuff from extra/ won't be there until I install something from there.
Anyway, if I installl from a full CD I get old packages which I have to pacman -Syu after installation (that takes long time).
Oh, so that's how is it.
V01D wrote:
I think I'm going to try out this:
* rsync at home (already got current last night)
* burn a DVD
* go to work and then update the packages on DVD using rsync again (this should be fast, if I don't wait long time after recording it)
And to optimize further rsync's:
* Do a first install on all nodes an try it out for a few days (so I install all packages needed)
* Construct a list of packages used by all nodes and frontend
* Remove them from my mirror
* Do further rsync updates only updating the files I already have
This would be the manual approach of the shared cache idea I think.
Hmm... but why do you want to use rsync? You'll need to download the whole repo, which is quite large (current + extra + testing + community > 5.1GB, extra is the largest). I suggest you to download only those packages and their dependencies that you use.
I have similar situation. At work I have unlimited traffic (48kbps at day and 128kbps at night), at home - fast connection (up to 256kbps) but I pay for every megabyte (a little, but after 100-500 megabytes it becomes very noticeable). So I do
yes | pacman -Syuw
or
yes | pacman -Syw pkg1 pkg2 ... pkgN
at work (especially when packages are big), then put new downloaded files on my flash drive, then put them into /var/cache/pacman/pkg/ at home, and then I only need to do pacman -Sy before installing which takes less than a minute.
I have 1GB flashdrive so I can always keep the whole cache on it. Synchronizing work cache <-> flash drive <-> home cache is very easy.
P.S.: Recently I decided to make complete mirror of all i686 packages from archlinux.org with rsync. Not for myself but for my friends that wanted to install Linux. Anyway I don't pay for every megabyte at my work. However it took almost a week to download 5.1 GB of packages.
IMHO for most local mirror solutions using rsync is overkill. How many users are there that use more than 30% of packages from repos? So why to make full mirror with rsync when you can cache only installed packages?
Maybe you are looking for
-
Until recently if I went into the iTunes App Store to look for new Music apps (for example) I could click on See All and bingo, several thousand music apps, arranged chronologically, were visible. Now all I can see in the Music category are a few sel
-
Frequently asked to uninstall and reinstall Acrobat 9 Pro
This is becoming an aggravating issue with me. I don't mind uninstalling and reinstalling, but to go through all the updates is time consuming. I have yet to find anything from Adobe that addresses this. Perhaps I missed something/ Thank you in a
-
File to idoc scenario with file size 16 MB
Hi experts We are developing a file to idoc scenario.The file is a 16 mb CSV txt file.Is it feasible to poll a 16 mb file at a single shot or any mechanism can be followed which would split the 16 mb file into manageable size files so that it can be
-
Hi, How to hide the Query Find window? I have 2 forms(XX, YY) . I'm calling YY from XX. Both forms having Query Find window. While calling from XX, how to hide YY's query find window. I have given like this CALL_FORM('YY'); hide_view('QUERY_FIND'); s
-
What causes my i4s phone to randomly shutdown?
What causes my 4s phone to randomly shutdown?