Thursday, March 29, 2012
Formula Error - Cannot find dimension member
Query 1:
select {[Measures].[BlockOrders]} ON COLUMNS
from USAGEDETAILS
WHERE [Trdate].[All Trdate].[2002].[July].[30]
This works fine, but if I run the following query, I get the above error message, because there is no data for July 1st, in the fact table.
select {[Measures].[BlockOrders]} ON COLUMNS
from USAGEDETAILS
WHERE [Trdate].[All Trdate].[2002].[July].[1]
Can some one help me?
Thanks,
Sophia.We have two tables Loans (Parent) & LoanIndicators (Child).
LoanIndicators stores the Loan status (ex Outstanding Amount) date wise. This table is updated with a new record only when the Outstanding Amount Changes , until that time the last record holds the status.
Ex :
Loan Table
Id LoanId LoanAmount
1 L1 1000
2 L2 2000
LoanIndicator Table
Id LoanId IndicatorDate Outstanding Amount
1 L1 1/1/2005 100
2 L1 1/13/2005 90
So in the above case if i want to know the Outstanding amount on 1/10/2005 of L1 i.e the record dated 1/1/2005 gives me the outstanding amount of 100.
To Create a Cube on this I create a View linking Loan & LoanIndicators i.e the view holds all the Parent + Child Records of each of the Loans.
Also the cube has a dimension on IndicatorDate.
Now in the Cube the Total AMount of Loan disbursed is 4000 but it shouold be 3000.
It is 4000 because it is summing L1 twice as the view has two records for L1.
1) How do we prevent this summing of L1 twice ?
2) If I want to know the Outstanding Amount on 1/10/2005 for L1 , how do i get it (It should be 100 as the position only changes on 1/13/2005).
TIA
Shuchi Agarwalsql
Friday, March 9, 2012
Format_String causes crash excel 2007
Hello,
I have the following mdx script command :
SCOPE ({[Rubrieken].[Hierarchy].&[32]});
FORMAT_STRING(THIS) = "#,#.00";
End Scope;
when I now generates an excel 2007 olap report, I get the correct formatting.
But when I change the MDX to
SCOPE ({[Rubrieken].[Hierarchy].&[32]});
FORMAT_STRING(THIS) = "#,#.00 d";
End Scope;
So now I expect a 'd' after the figures.
But when I generate the same report in excel 2007, excel crashes.
Anyone an idea?
thx
This is only a guess but you can try "#,#.00d" .
It can be the space that is causing the problem.
When you write a percent format you can use "##.##%" so if my suggestion do not work SSAS2005 expects a code it understands and d is not supported.
HTH
Thomas Ivarsson
|||Hi Thomas
I tried it, but it also cause excel to crash.
The weird thing is that in the 'browser' of Analysis Services the formatting is shown correct.
So I think that it is a bug in excel.
|||I can confirm this problem with Excel 2007. It works fine in ProClarity Professional 6.3
Yes, it looks like a bug in Excel 2007.
Regards
Thomas Ivarsson