Update DIM data in Fact Table
All -
I have a TSR dimension data (1 of 12 dimensional attributes) in our forecast fact table which gets updated monthly in our source system and we have to reflect this in our BPC system. What is the best method of updating this data in BPC?
1. Can I update the TSR directly in the forecast fact table and reprocess the application to reflect this in the cube?
2. Do I have to negate that entire fact table row with the old TSR and insert a new row with the new TSR and process the cube?
3. Any other method?
Thanks for your help.
You need to explain your requirement a bit more. Why you want to add type or rejection reason in fact table.
In general you should avoid adding textual data in fact.
Fact tables are only supposed to store keys and measures. It can hold textual data in case of degenerate dimension ( i.e if the number of records are same in dimension as well as fact ).
Type or Rejection reason are going to have much less records. You can create a new dimension for them having probably 20 or 30 records.
Disadvantages of adding textual data in fact is, once the fact has millions of records the fact table updates are going to take huge time and also your reports will take long time.
If you have a rejection reason dimension with some 20 records, you can use rejection reason in prompts.
But if the same rejection reason is coming from fact table your prompts performance is going to be very slow since it has to fetch 20 distinct records from millions of records.
Consider these before adding textual data in facts.
Thanks
Edited by: Maqsood Hussain on Dec 5, 2012 9:40 PM
Similar Messages
-
Hi
I would like to understand what can be the probable issues which I may face in OBIEE 11g if my fact table has non- numeric data (textual data) like type or rejection reason in the fact table.
I am new to the team and the data warehouse consist of textual data in fact table. I am not very much sure whether this approach is correct(unless I am missing latest trend)
Can anybody explain me with example on what can be the issues which we can face with textual data in fact table
Regards
SameerYou need to explain your requirement a bit more. Why you want to add type or rejection reason in fact table.
In general you should avoid adding textual data in fact.
Fact tables are only supposed to store keys and measures. It can hold textual data in case of degenerate dimension ( i.e if the number of records are same in dimension as well as fact ).
Type or Rejection reason are going to have much less records. You can create a new dimension for them having probably 20 or 30 records.
Disadvantages of adding textual data in fact is, once the fact has millions of records the fact table updates are going to take huge time and also your reports will take long time.
If you have a rejection reason dimension with some 20 records, you can use rejection reason in prompts.
But if the same rejection reason is coming from fact table your prompts performance is going to be very slow since it has to fetch 20 distinct records from millions of records.
Consider these before adding textual data in facts.
Thanks
Edited by: Maqsood Hussain on Dec 5, 2012 9:40 PM -
How to update the data in sqlserver table using procedure in biztalkserver
Hi,
Please can any one answer this below question
how to update the data in sqlserver table using procedure in biztalkserver
while am using executescalar,typedprocedure getting some warning
Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
Please send me asap....
Thanks...Hi Messip,
A detailed error would have helped us to answer you more appropriately but
You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
Maheshkumar
S Tiwari|User
Page|Blog|BizTalk
2013: Inserting RawXML (Whole Incoming XML Message) in SQL database -
Attribute key not found when there is no data in Fact table
Hi All,
I have a Dimension and Fact table,Dimension has data but Fact table is empty. The Dimension is MOLAP & Measure group is ROLAP. the relation is built on Key column and named column is some other attribute.
When I execute MDX "select { [Measures].[Avg Sales] -- Average type measure} on columns from my_Cube ", this returns a valule with #Error. error message in cell is "The attribute key cannot be found when processing:
Table: 'FACT, Column: 'ID', Value: '0'. The attribute is 'Name' "
I have processed the Dimension with Full and then Cube is processed with Full. but still same error. Please suggest .
Ram MSBI DeveloperHi Ram ,
Since you mentioned "Value: '0'. The attribute is 'Name' ""
I would recommend to have a look at the Key/Name Column's property regarding to the NullProcessing .
Regards, David . -
Insert data into fact table from source database tables
here i try to insert data into fact table from source database tables here is the query
ALTER procedure [dbo].[facttable]
as
insert into [pp dw].dbo.Dimfact(Prod_ID,Production_ID,Material_ID,Equip_ID,WC_ID,Recipe_ID,Quantity,costprice)
select Products.[Product ID],[Production ID],Materials.[Material ID],[Equipment ID],[Work Centre ID],[Recipy ID],Quantity,[cost price]
from
[PRODUCTION PLANNING 2].dbo.[Products],
[PRODUCTION PLANNING 2].dbo.[Production Detail],
[PRODUCTION PLANNING 2].dbo.[Material category],
[PRODUCTION PLANNING 2].dbo.[Materials],
[PRODUCTION PLANNING 2].dbo.[Equipment],
[PRODUCTION PLANNING 2].dbo.[Working Centre] ,
[PRODUCTION PLANNING 2].dbo.[Recipies]
where
Products.[Product ID] in (13, 14, 15, 16, 17) and
[Production Detail].[Production ID] in (1, 2, 3) and
[Materials].[Material ID] in (1, 2, 3, 4, 5) and
[Equipment].[Equipment ID] in (1, 2, 3, 4) and
[Working Centre].[Work Centre ID] in (1, 2, 3) and
[Recipies].[Recipy ID] in (1, 2, 3) and
[Material category].[Category ID] in (8, 9, 10, 11, 12, 13)
and when i execute query it shows me error
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Dimfact_Dimproduct". The conflict occurred in database "pp dw", table "dbo.Dimproduct", column 'Prod_ID'.
ERD IS
HOW TO SOLVE THIS PROBLEM?I cant see any join conditions in your query posted. Whats the purpose of the query above. It will just bring you a cartesian product (cross join) of tables involved subjected to filters. Are you sure this is the correct query?
The error you're getting may be because you've not yet populated DimProduct or may be because of logic you used in popultaing DimProduct causing it to miss some records which is what query is referring to in above case.
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
How to update the data the transparent table CKMLMV013 ?
How to update the data the transparent table CKMLMV013 ?
can you please replay asap.
thanks,
sambaHi,
if you do a "where used" search of the table CKMLMV013 you will see that it is updated in several places:
e.g. fm CKML_ORDER_CONNECTION_UPDATE
Have a look at those places where the table is updated.
Best regards. -
Unexpected transaction data in fact table
Hi,
I have created customized table having field
SWISSEMPID SWEMPNAME SWADDRESS SWDESIGNATION
SWHIREDATE SUPERVISOR SWISSCOMP ETHNICITY LANGUAGE CURRENCY
On the basis of table , I have created generic data source for text ( empname ) and attr ( empid)
dtp excetuded successfully
but for transaction data , in extract structure I have taken empid and empname for connecting dimension
table to fact table , compensation also selected ( transaction data)
after exectuing dtp i am getting 426000 value , it is repeated for each record
which does not exist in table
Regards,
Vivek
Edited by: Vivek Srivastava on Jan 13, 2010 9:07 AMYou need to explain your requirement a bit more. Why you want to add type or rejection reason in fact table.
In general you should avoid adding textual data in fact.
Fact tables are only supposed to store keys and measures. It can hold textual data in case of degenerate dimension ( i.e if the number of records are same in dimension as well as fact ).
Type or Rejection reason are going to have much less records. You can create a new dimension for them having probably 20 or 30 records.
Disadvantages of adding textual data in fact is, once the fact has millions of records the fact table updates are going to take huge time and also your reports will take long time.
If you have a rejection reason dimension with some 20 records, you can use rejection reason in prompts.
But if the same rejection reason is coming from fact table your prompts performance is going to be very slow since it has to fetch 20 distinct records from millions of records.
Consider these before adding textual data in facts.
Thanks
Edited by: Maqsood Hussain on Dec 5, 2012 9:40 PM -
Hi All
Can you please let me know whether the data in the fact table can be moved from Dev to QA?
If yes, how?
Many Thanks!
Regards,
AfreenIt's not possible with transport.
For testing purpose you can add DEV source system in QUA, create datasource for DEV cube in QUA and transformation to cube in QUA (direct map for all fields) and load data with standard BW flow: infopackage and DTP.
You can generate datasource for cube by right click at infocube->Additional functions->Generate export DataSource. Datasource name will be 8<cube_name>. -
Multiple Date Fields (Fact Table) - Linking with Time Dimension
I have a fact table that has multiple date columns.
I can make a time dimension, but it has to be joined to a particular date column. This becomes difficult because of the limit in having multiple date fields reference one time dimension. I can see possibly
creating a date table which contains all dates, link to fact as well as time dimension table. I am trying to better visualize the table layout on this one. Or are there possibily better ways of looking at this senerio
Any idea'sFigured this one out; going to use one time dimension - what looking too much into the details in regard to this scenerio
-
Unable to view newly added data to fact table
Hi,
I have load some data into my fact table and dimensions to test my cube and make sure everything is OK, works fine so far.
Now I have loaded data for another year 2013 into my fact table, all OK I have re-process the cube , all OK here too.
When I want to browse the data, I can only see the data for 2014 in the browser but when I look at the totals the amount of rows are OK ( the count of sales transaction 8M for 2014 and 7.5M for 2013), I cannot see any thing under the year 2013,
I have re-process and reload the cube 2-3 times but still the same results , I have looked under the partition tab and the estimated rows is OK, on the aggregation tab, it shows the original amount (8M) instead of 15.5M ( should this number be the same
as the partition estimated rows ?)
How can the data not showing in 2013 but the totals row being OK ? I will need to add data until 2010 1 year at time ( very slow dev machine).
Need to understand this
Thanks
Al
FYI I just found out that the info is in the Year unknown instead of being displayed in year 2013Hi A,
This sounds like your date dimension does not have the relevant dates for 2013, so when you process these facts, they go into the unknown members in the date dimension.
I suggest that you ensure the dates are available and processed in the date dimension before you process your facts.
Hope that helps,
Richard -
Update On data from multiple Tables
How can i update data from multiple tables(Using a Join)
using a single update statement.Hii
Suppose i have following tables
create table emp_mas(empno number primary key,name varchar2(30));
create table emp_grad(empno number primary key,grade varchar2(1));
SQL> select * from emp_grad;
EMPNO G
100 A
101 A
102 B
SQL> select * from emp_mas;
EMPNO NAME
100 GREG
101 THOMAS
102 SAM
I would like to update information of employee 'GREG' Using a single update statement as
UPDATE (SELECT E.EMPNO,E.NAME,G.GRADE FROM EMP_MAS E,EMP_GRAD G WHERE E.EMPNO=G.EMPNO) J
SET J.NAME='GREG THOMAS',J.GRADE='B' WHERE EMPNO=100
Then i am getting Error message like this.
ERROR at line 2:
ORA-01776: cannot modify more than one base table through a join view
How can i achieve the result -
How to load data to fact table for the year 2008 without modifying session sql
Hi,
I need to load data to OOTB Financial-General ledger related fact tables using new DAC execution plan for the year 2008 (just for the year 2008 not before or after). without modifying OOTB informataica session SQL. do you know how to do it?
appreciate you for your help. thank you.Do you know why you are going for new Execution plan instead of using existing?
let me know this will share what I know
thanks for checking
PS: JV its you!!
Message was edited by: SriniVEERAVALLI -
How to update with data on two table
Hi,
I'm having below problem:
Table 1: T_UTR(bdate,rec,id,channel,invoice,prod,proc_date)
Table2: t_upd_utr(bdate,rec,id,channel,invoice,prod)
I want to update data in t_utr like below:
update t_utr set proc_date=sysdate,invoice=t_upd_utr.invoice
where
t_utr.bdate=t_upd_utr.bdate
And t_utr.rec=t_upd_utr.rec
And t_utr.id=t_upd_utr.id
And t_utr.channel=t_upd_utr.channel
And t_utr.invoice=t_upd_utr.invoice
And t_utr.prod=t_upd_utr.prod
I'm not able to do so with join as join is not possible in update statement.
Pls advice how can I achieve the above update with least complexity
Thanks
Deepakupdate T_UTR
set proc_date=sysdate,
invoice=(select t_upd_utr.invoice where t_utr.bdate=t_upd_utr.bdate
And t_utr.rec=t_upd_utr.rec
And t_utr.id=t_upd_utr.id
And t_utr.channel=t_upd_utr.channel
And t_utr.invoice=t_upd_utr.invoice
And t_utr.prod=t_upd_utr.prod)
If you want filter then you can apply filter in where condition in Main update statement. -
Problem in saving or update the data in the table
hi ,
i have created a button (save) and onaction event i have writen the code but when iam going tho edit the data or inserting the new data , it showing on the brouser but it is not sving into the data base
method onactionsave.
data:
lo_element type ref to if_wd_context_element,
lo_node type ref to if_wd_context_node.
lo_node = wd_context->get_child_node( name = 'your node name here' ).
lo_element = lo_node->create_element( ).
lo_node->bind_element( new_item = lo_element set_initial_elements = abap_false ).
endmethod.
suggest me the aswer or the code to update or save it into the database
thanks & regards...
sarfarazHi Sarfraz,
do in this way....
when you click buton save it will trigger the action event.In that method retrieve the data from table.
Check this code how to retrieve the data from table.
here i am giving my code. I am showing SFLIGHT details in my table check the below code.
data:
node_sflight type ref to if_wd_context_node,
elem_sflight type ref to if_wd_context_element,
lt_elements type WDR_CONTEXT_ELEMENT_SET,
stru_sflight type if_main=>element_sflight_node,
it_flights type if_main=>elements_sflight_node.
* navigate from <CONTEXT> to <SFLIGHT_NODE> via lead selection
node_sflight_node = wd_context->get_child_node( name =
if_main=>wdctx_sflight_node ).
* get element via lead selection
* elem_sflight_node = node_sflight_node->get_element( ).
lt_elements = node_sflight->get_elements( ).
* get all declared attributes
loop at lt_elements into elem_sflight.
elem_sflight->get_static_attributes(
importing
static_attributes = stru_sflight ).
append stru_sflight to it_flights.
endloop.
modify ZSFLIGHT99 from table it_flights.
if sy-subrc eq 0.
endif.
Hope this will help you.
Thanks
Suman -
Mass Update of date in Qualified table
I having problem in updating End availability date in Partner Specific Data (which is a qualified table). How can do a mass update of selected records. I have written an assignment expression which has no error but it is not doing the update.
Regards,
MarcelHi Marcel
Assignment and validation does not work well for qualified table. It will work for only first qualified linked record and not all.
for mass update you can use import manager map the date qualifier field and select replcae action for qualified update in the destination item.
best regards
ravi
Maybe you are looking for
-
How do I get restrictions to block inappropriate content in the app store.
How do you set restrictions so that they work? Here is my problem. Your age restrictions do not block inappropriate content in the app store but it blocks the Netflix app from functioning and removes it's icon alltogether. This is rediculous. Apple
-
ROCANCEL Field problem SD 2LIS_11_VAITM
Hi I am facing a problem in which one SD report i am getting few sales order which are cancelled in R/3 but still coming in my report. I checked in 2lis_11_vaitm and there is no value coming in ROCANCEL field. 0STORNO is reversal indicator but there
-
Any recommendation on an e-mail program for Windows for iCloud?
I love Mail on my iMac, but need a another option for iCloud on my PC too. I'm not fond of Windows Live Mail program. Any other ideas out there? Thx!
-
Help! iPod not synch'ing completely
Just noticed that my iPod doesn't completely synch with my Mac. For example, the Beatles album '1' has 27 tracks. They're all in my iTunes. When I update my iPod (manually, for all checked tracks), only 16 of the tracks from the album '1' are transfe
-
Rebate billing doc not reflected in COPA
I have mapped the rebate condition type BO01 to BO05 with a COPA value field called rebate value already. However, I found that no COPA doc is created after the rebate billing doc is created. Why? How can I check the configuration? I have tried in th