I have 3 tables that has records added monthly. I am trying to set up master calendar
to pick up values month wise. The sample has data for Dec and Jan only.
Order: The Req is that, for ProductA for Dec 2015, it sud plug Value X and Value Y for Jan 2016
Group: The Req is that for ProductA, for Dec 2015, it sud plug Attribute 10 for A and attribute 40 for Jan 2016
in Expn 1, I am counting Product leased when Value is "X" for dec 2015 or Jan 2016.
The Value of X is assigned in Order Table. So when I select Dec 2015, Expn 1 for XYZ
sud be 3, but it shows 5 at all times which is incorrect. 3, because A has "X" in 2015
from Order table and A was sold 3 times in 2015, shown by Sales table
How do I configure this with a master calendar.
For Expn 2,the total for year 2015 sud be 50 but its showing 210 and does not respond to the year filter.
50 bcoz under Group XYZ, Product A was sold 3 times (10 * 3) and B was sold once (20 *1)
pls see the excel file and qvw attached. !
Solved! Go to Solution.
The best way that I find is to concatenate all fact tables into a single table, and rename and augment columns as required. This tends to work much better than having lots of table.
So from Sales:
'Sales' as RowType,
[Sales Date] as Date
Then from Order:
'Order' as RowType,
[Order Date] as Date
As you don't have Group in your Order table, when you select a Group you will not see any orders (is this correct?). This can be fixed either by looking up the group when you load orders, or by ignoring selections on Group using Set Analysis when looking at Order values.
If you have large amounts of data and QVDs you will need to ensure you make your loads Optimised. This can be done by keeping columns in all concatenated tables identical.
Other techniques for multiple fact tables and a single calendar are Link Tables and putting your date table in a Data Island.
Hope that all makes sense and is of help.
I have simplified the Question and app to go step by step. Pls see the attached QVW.
In the app, 1st table is how many products were sold in 2015? ans sud be 4. why is it showing 6?
I think I have the link table correctly place with Type as Sales which is used in the expn.
Pls comment what I am missing.
Order date as Date,
Sales Date as Date
Resident to Sales
Month(Date) as Month,
Year(Date) as Year,
Week(Date) as Week,
Day(Date) as Day,
'Q' & Ceil(Month(Date)/3) as Quarter,
Year(Date) & Ceil(Month(Date)/3) as Quarter Year
Try this one