Defining Dimensions, Attribute Hierarchies for a Link Table(Many to Many)
I have 3 Tables in the Database
Table 1: Transactions (Fact Table) - PK(TransactionId)
Table 2: Relationship (Dimension1) - PK(Relationship Id), FK_TransactionId, FK_CompanyId, RelationshipType
Table 3: Companies (Dimension 2) - PK(CompanyId)
Table 2: Relationship table is a link table between Transactions & Companies to facilitate many to many relationship.
I defined Fact and Dimension tables accordingly but having issues defining Dimension & Attributes for Relationship tables
Relationship Dimension:
I have 3 hierarchy groups defined
Hierarchy 1 - Relation -Relationship Type,Relationship Id(PK)
Hierarchy 2 - Transaction - Transaction, Relationship Id(PK)
Hiearchy 3 - Company - CompanyId, Relationship Id(PK)
Defined the attribute relationship in the following way
RelationshipID(PK) ---> CompanyId , RelationshipID(PK) ---> TransactionId, RelationshipID(PK)
---> RelationshipTYpe
I am getting incorrect results when I deploy the cube. Not all the types are being displayed only 4 types are being displayed out of 27 types though there exists Transactions for all the Types.
To fix the incorrect results, I tried to break the Relationship Dimension into 2 dimensions seperating Transaction(Relationship Dim) & Company,Type (Companies Dim). I tried to configure a many
to many Relationship type between my Companies Dim & Fact Table Transaction. But I get the error that says
"Companies Dim many to many dimension in the Tansaction measure group requires that the granularity of the Relationship dimension is lower than that of the Relationship measure group "
Any help regarding how to difine Dimensions & Attribute Hierarchies on a Many to many link table is appreciated.
Hi Jaya,
According to your description, you are experiencing the issue when implement many to many relationship by using a bridge table in your SQL Server Analysis Services project, right?
Generally, a bridge table will have a surrogate key for the dimension and a surrogate key to the fact table or a degenerate dimension based on the fact table. Here are some blogs which describe how to implement many to many relationship using a bridge
table.
http://bifuture.blogspot.com/2011/06/ssaskimball-modeling-nm-relation.html
http://www.sqlchick.com/entries/2012/1/22/data-modeling-tip-when-using-many-to-many-bridge-tables-in-s.html
http://social.technet.microsoft.com/wiki/contents/articles/22202.a-practical-example-of-how-to-handle-simple-many-to-many-relationships-in-power-pivotssas-tabular-models.aspx
Regards,
Charlie Liao
TechNet Community Support
Similar Messages
-
Is it possible to define master page usage for a linked project?
Hello again!
I feel like I'm spamming this forum with all my questions, but I seem to be having a difficult time trying to find information on FM/RH integration.
Is there a way to define which master pages are assigned to the topics linked to FM files?
I don't really want to do this individually for each topic (I only have 2 master pages: one for the intro page and another for all other topics).
Even so, when I map a FM file manually to a RH master page, I get a warning message stating that any changse to the topic will be overwritten on the next FM file update.
Any ideas?
Thanks again.
SueHi Sue
I'm a RoboHelp user and a big ole Frame ignoramous. So what I'm about to tell you comes from the RoboHelp perspective.
SueC2009 wrote:
...I don't really want to do this individually for each topic (I only have 2 master pages: one for the intro page and another for all other topics)...
Indeed it would be VERY cumbersome if you had to associate a Master Page on a topic by topic basis. The good news here is that you have an ability in RoboHelp to select as many topics as you like and only make the association a single time.
Just open the Topic List pod. There you are able to select all topics by pressing Ctrl+A. From there you are then able to associate the desired master page.
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7, 8 or 9 within the day!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks -
Can I define 2 Distinct Style for A link tag?
I created a template for my main menu and other universal contents. the items on my main menu are all matched with specific colors that I chose, (let's say red when normal and purple when hover)
now, a page I inherit from the template, let's say B, has some links as well... and they should not inherit the link style defined in my templated. (for example, they should be blue and white when hover)
is there any ways for me to do that? right now, if i changed the link color for B, it.. well... does nothing
(should the law of greater specificity allow the definition in children to override the parent?)
so, how do i get the effect i want? (red menu, blue other links)These may help:
http://www.thepattysite.com/linkstyles1.cfm
http://www.projectseven.com/tutorials/pseudoclasses/index.htm -
Dimension Attribute Data missing in case of One to Many relationship
My dimention table result set in DSV.
Product ID
Item ID
1
20
1
25
(Query population in dimension table:
select a.ProductID, b.ItemID from db.Product a
LEFT JOIN dbo.Item b ON a.ProductID = b.productID
ProductID and ItemId is like One to Many and fyi I’m relating factsales table with this dimension table on productId)
But in cube data I’m getting result set like this:
Product ID
Item ID
1
20
Can anyone tell me what might be the problem and what the areas I have to look are?
Appreciate your help.
Thanks
Royal ThomasIt looks like you probably have ProductID setup as your key attribute. The key attribute has to be unique as it defines the granularity of your dimension. So based on the data you have shown ItemID should possibly be the key attribute.
http://darren.gosbell.com - please mark correct answers -
Tag structure for a linked TOC
What is the proper tagging structure for a linked Table of Contents and how does one create it? I can't find instructions on how to do it!! I am tagging my document on a Mac and using Adobe Acrobat Pro X. Thank you for any help you can give me!!
It sounds like you are post-processing an existing PDF to build / augment the structure tree.
In that context it might be best to take a basic approach.
Say you have:
Line 1 is: This is the TOC
Line 2 is: Chapter 1 (some text) (maybe a leader .....) (maybe a page number)
Line 3 is: 1.1 (some text for sub-section level 1) (maybe a leader .....) (maybe a page number)
Line 4 is: 1.1.1 some text for sub-section level 2) ( maybe a leader .....) (maybe a page number)
Build this in the structure tree (please, do avoid use of TORU).
n.b., "[ ]" denotes the content container (the "banker's box seen in the structure tree)
(P) tag
(Link) tag
[ ] objr
[ ] (Line 1's content)
More of the same for the remaining 'Lines'
While you could make use of the grouping elements TOC and TOCI doing so manually is non-trivial.
Grouping elements are only used to group other structure elements and are not directly associated with content items.
You start with -TOC-
Children of -TOC- can be -TOCI- and/or nested -TOC- elements.
-TOCI- groups the individual members of a table of contents.
Children of -TOCI- can be:
-Lbl-
-Reference-
-NonStruct-
-P-
-TOC-
Be well... -
View for a network node or link table
Can a view be used for a nework node or link table? The process sdo_net.validate_network hangs when I try to validate a network based on views for the node and link tables.
I am using a logical model. The sql statement (checking link/node relationship) that hangs is:
select count(a.link_id) from vlinks a
where not exists
select * from vnodes b
where b.node_id = a.start_node_id or b.node_id = a.end_node_id
I gather there is a concurrency issue with my links view because it joins a table with itself. I have a link table that has the start and end nodes defined on two records. Here is my view script:
create or replace view vlinks
(link_id, link_name, start_node_id, end_node_id, link_type, active, link_level, cost, parent_link_id)
as
select a.id, 'Link '||a.id, a.nodeid, b.nodeid, 'simple', 'Y',1,0,''
from vnodes a, vnodes b
where a.seq=1 and b.seq>1 and a.id = b.id
I can create tables from my views and validate them successfully through sdo_net.validate_nodes_schema, sdo_net.validate_links_schema, and sdo_net.validate_network.
I can analyze the network model through the Java API using the reachable nodes, shortest path, and spanning tree methods without any problems.
I guess I'll validate my view links by counting the total number of links and subtracting the number of links joined successfully at the start and end nodes - if 0 then all links are valid. E.g.:
select count(link_id) from
select link_id from vlinks
minus
select a.link_id from vlinks a, vnodes b, vnodes c
where a.start_node_id = b.node_id
and a.end_node_id = c.node_id -
How are attribute and text master data tables linked in SAP R/3?
Hello,
how are attribute and text master data tables linked in SAP R/3?
Most tables with attribute master data like T001 for company codes,
have a text master data table T001T (add "T" to table name).
When looking at the content of table T001 via transaction se11,
the text are automatically joined.
But for some tables there is no "T"-table (e.g. table TVBUR for sales offices
has no text table TVBURT), but in se11 you get texts. There is an address
link in TVBUR, but the Name1, etc. are empty.
a) Where are the text stored?
b) How does the system know of the link?
Hope someone can help!
Best regards
ThomasHi Thomas
The master and text table are not linked by name, of course, if you see the text table, it has the same key fields of master table, only it has the field key spras and the field for description.
The link beetween the tables is done by foreign key: if you check the text table TVKBT u need to see how the foreign key for field VKBUR is done:
-> Foreing key with table TVBUR
-> Foreing key field type -> KEY FIELD FOR A TEXT TABLE
->Cardinality-> 1-:CN
It's very important the attribute sets for Foreing key field type, if it's KEY FIELD FOR A TEXT TABLE, it'll mean the table is a text table: i.e. that mean the master table is a check table for the text table, where the foreign key type is for text table.
U can find out the text table of master table by SE11: GoTo->Text Table
U can fined some information in table DD08L.
Max -
Oracle DB 10g and BI Discoverer for OLAP - Dimension Attributes
Hi,
We are using Oracle Database 10g release 1 with partitioning, data mining and OLAP options and Analytic Workspace Manager 10.2.0.1.0A to create the multidimensional objects. For the user dimensions created using AWM we have custom attributes like HireDate, StartDate, Sales Personnel Role etc., For reporting purposes we are using Discoverer for OLAP. In this Discoverer version, I don't see an explicit provision to drag these attributes onto the worksheet. We are only able to filter based on these attributes and capture the measures...
Can someone throw light on this? Also, if there is a possibility to drag these attributes onto the worksheet can that be expounded?
Thanks in advance!Again this depends on what you are trying to achieve. If you define an attribute against a dimension it takes very little space as it is not directly connected to a cube and so no data is stored against that attribute.
If, however, you have a 4D revenue cube (product, geography, channel, time) with products attributes COLOR and PACK SIZE and you want to view revenue additionally borken-out by COLOR and PACK SIZE as well as the other four dimensions then your schema will require additional storage space. However, 10g compressed cubes and sparsity options do help to manage the explosion of data points as the number of dimensions increases. This should allow you to easily add attributes as dimensions into your cube.
One thing to remember is that most users start to struggle when confronted with more than 9 dimensions. So although Oracle OLAP can create extremely large dimensional models, users prefer their cubes to have 9 or fewer dimensions.
Hope this helps,
Keith
Oracle Business Intelligence Product Management
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Beans http://www.oracle.com/technology/products/bib/index.html
Discoverer: http://www.oracle.com/technology/products/discoverer/
BI Software: http://www.oracle.com/technology/software/products/ias/devuse.html
Documentation: http://www.oracle.com/technology/documentation/appserver1012.html
BI Samples: http://www.oracle.com/technology/products/bi/samples/
Blog: http://oraclebi.blogspot.com/ -
How to define Composite primary key for a Table
Hi ,
I am basically more into Java Programming , with little bit knowledge on Oracle as DataBase .so please excuse for my silly doubts .
Can anybody please tell me how to define a Composite Primary Key on a Table .
Thanks in advance .
Edited by: user672373773 on Sep 25, 2009 8:54 AMHere is an example right out of the Oracle documentation and the syntax for adding PK since you mention adding a composite PK.
Example creating composite index
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_indexing.htm#sthref594
Syntax for adding a PK (composite or not)
alter table oooooooo.tttttttt
add constraint tttttttt_PK
primary key (sample_column2,
sample_column1)
using index
tablespace IDXSPC
pctfree 05
initrans 04
maxtrans 08
storage (initial 16k
next 16k
maxextents 32
pctincrease 0);
-- dictionary management with restricted storage, change as desired.
HTH -- Mark D Powell -- -
How to create Hierarchies for a Dimension?
Hi,
How to create Hierarchies for a Dimension in Multidimensional Models? Could you please suggest some document provides step by step instructions to create Multidimensional Model?
Thanks
M ThiyagarajanHi M Thiyagarajan,
connect dimension to first level and after that connect that level to another one and so on. For level - each additional outgoing connection means additional hierarchy.
Philip -
WBS Element and Service No Link Table for Purchase Order document
Hi Experts,
We are Facing 1 Problem for finding link between
WBS Element and Service No for corresponding Purchase Order document . Please Suggest me to find Related tables for Project system Module .
Thanks and Regards
BalaNarasimman.MHi,
The link will be in MM table, not PS table. Try EKKN.
Regards -
How to create a DSN-less connection to SQL Server for linked tables in Access
hey
i cant understand how i use that Function
if that information what you need
stLocalTableName: dbo_user_name
stRemoteTableName: user_name
stServer :sedo2015.mssql.somee.com
stDatabase :sedo2015
stUsername :sedo_menf_SQLLogin_1
stPassword :123456789
how will be that Function??
please write that Function to me
'//Name : AttachDSNLessTable
'//Purpose : Create a linked table to SQL Server without using a DSN
'//Parameters
'// stLocalTableName: Name of the table that you are creating in the current database
'// stRemoteTableName: Name of the table that you are linking to on the SQL Server database
'// stServer: Name of the SQL Server that you are linking to
'// stDatabase: Name of the SQL Server database that you are linking to
'// stUsername: Name of the SQL Server user who can connect to SQL Server, leave blank to use a Trusted Connection
'// stPassword: SQL Server user password
Function AttachDSNLessTable(stLocalTableName As String, stRemoteTableName As String, stServer As String, stDatabase As String, Optional stUsername As String, Optional stPassword As String)
On Error GoTo AttachDSNLessTable_Err
Dim td As TableDef
Dim stConnect As String
For Each td In CurrentDb.TableDefs
If td.Name = stLocalTableName Then
CurrentDb.TableDefs.Delete stLocalTableName
End If
Next
If Len(stUsername) = 0 Then
'//Use trusted authentication if stUsername is not supplied.
stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";Trusted_Connection=Yes"
Else
'//WARNING: This will save the username and the password with the linked table information.
stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";UID=" & stUsername & ";PWD=" & stPassword
End If
Set td = CurrentDb.CreateTableDef(stLocalTableName, dbAttachSavePWD, stRemoteTableName, stConnect)
CurrentDb.TableDefs.Append td
AttachDSNLessTable = True
Exit Function
AttachDSNLessTable_Err:
AttachDSNLessTable = False
MsgBox "AttachDSNLessTable encountered an unexpected error: " & Err.Description
End Functionthanks more thanks for you
look i add that code in form
it worked but i cant add recored why ??
Private Sub Form_Open(Cancel As Integer)
Call AttachDSNLessTable("dbo_user_name", "user_name", "sedo2015.mssql.somee.com", "sedo2015", "sedo_menf_SQLLogin_1", "123456789")
End Sub -
JOIN for many-to-many linked tables?
I have two tables, A and C, linked by a many-to-many intersection table B.
I'd like to do a select from A with a LEFT OUTER JOIN to C for items mapped via B. A row in A may or may not have rows in C linked to it.
I've tried to do a select using sub-selects but then I don't get the rows from A that don't have related rows in C.
When I try to use the syntax of a LEFT OUTER JOIN I can't figure out how to link A and C via the B table.
I would appreciate suggestions for how to approach this.
Thanks in advance,
GeorgeEXAMPLE
SQL> L
1 with A as (
2 select 1 col1, 1 col2 from dual union all
3 select 2 , 1 from dual union all
4 select 3 , 2 from dual)
5 ,
6 B as (
7 select 1 col2, 1 col3 from dual union all
8 select 2 , 3 from dual)
9 ,
10 C as (
11 select 1 col3 from dual union all
12 select 2 from dual union all
13 select 3 from dual
14 )
15 select *
16 from A
17 LEFT JOIN B ON (A.COL2=B.COL2)
18* LEFT JOIN C ON (B.COL3=C.COL3)
SQL> /
COL1 COL2 COL2 COL3 COL3
1 1 1 1 1
2 1 1 1 1
3 2 2 3 3 -
Hyperion Planning : multiple hierarchies for a dimension ?
Hi,
Is it possible into planning 9.2 to manage multiple hierarchies for a dimension ?
I didn't found that in the documentation but I had already listened that there is a workaround to do that.
RegardsHi,
I would like for the entity dimension used two differents hierarchies (two differents relation Parent/child), one for example used by the accounting service and an other used by the sale service.
The level0 member are the same but parents are differents in these two hierarchies.
It's something possible to do into OFA or EPB and I would like to do the same into Hyperion. planning.
Regards -
Table for object links.
Hi,
Please provide the table for object links in cprojects and also the tables relevant for cprojects.
Thanks,
VargheseDPR_OBJLINK Object Links
DPR_OBL_CATEGORY Category for Object Types of Object Links
DPR_OBL_OBTYP Characteristics of Object Link to Object Type
DRAD Document-Object Link
TDWO Document Management Object Link
TDWOT Texts for Object Links in Document Management
Check these tables.
Regards
vijay
Maybe you are looking for
-
Paint a simple square in a pdf-document
Hi, i have a simple question. How can i paint a simple white rectangle in a pdf-document? Backround is following: I wanne stamp a text in an arrea of my pdf. I dont know what is in that area. So it can happens i stamp my black letters on a black back
-
Oracle Metadata Integrator not showing relationships
Hi, We are having Information Steward version 14.2.1.220 and we ran the JDBC driver version for Oracle database is 11.2.0.1.0. It ran successfully but dint collect the relationships(impact, lineage etc). Here I have attached the log file. Can anyone
-
Syncing issues with 4S since iOS 8 Update
Any iPhone 4S owners having issues syncing to iTunes since "upgrading" to iOS 8? I have a 32 GB phone and I've had make almost 12 GB available to even get the phone to sync. I had to delete half my music library and a bunch of apps!! I'm ******!
-
I have successfully created a combo box, however, none of the tutorials I have found discuss the inclusion of a scroll bar within a combo box. I want the data list to revert back to the original start state when the user clicks on an item in the lis
-
Problem with DELETE_BYNAME service
Hi All, I have written a custom service which deletes the content by invoking Conent Server's "Delete_ByName" subservice. I have give read, write and delete permissiont to my service. Now when i invoke the service then I get an error message from con