Showing posts with label dimension. Show all posts
Showing posts with label dimension. Show all posts

Tuesday, March 20, 2012

can not browse dimension

hello all,

I'm learning SSAS2005 I've installed and currently are running throught he
tutorials.

I've run into a problem where i'm able to process the cube with no errors.
i'm able to browse the cube with no probems.

however when I open a dimension and try to browse the dimension I get the
following error.

"Input String was not in a correct format"

I was able to save the project to another users machine and run without
problems. So we know it has to do with a set up on my machine.

any ideas are appreciated.
thankshello all,

I'm learning SSAS2005 I've installed and currently are running throught he
tutorials.

I've run into a problem where i'm able to process the cube with no errors.
i'm able to browse the cube with no probems.

however when I open a dimension and try to browse the dimension I get the
following error.

"Input String was not in a correct format"

I was able to save the project to another users machine and run without
problems. So we know it has to do with a set up on my machine.

any ideas are appreciated.
thanks

Can you tell where exactly in the tutorial are you facing this problem. Is that all the text you get in the error message .. or is there more ?sql

Sunday, March 11, 2012

Can MDX or latch a value based on a signal?

Dear All,

Persume that I have a cube with the following measures and dimension:

DimTime, measures.LatchSignal, measures.Voltage

0,1,4

1,0,5

2,0,6

3,0,5

4,1,3

5,0,7

6,0,5

7,1,6

8,0,7

Is there anyway I can repeat the value of voltage on and after the time when latch signal = 1, so that the result is rendered as follows:

DimTime, measures.LatchSignal, measures.Voltage, measure.latchedVoltage

0,1,4,4

1,0,5,4

2,0,6,4

3,0,5,4

4,1,3,3

5,0,7,3

6,0,5,3

7,1,6,6

8,0,7,6

Thanks and regards,

Tony Chun Tung Siu

Hi Tony!

Why do you try to make it in MDX. What the problem do you solve?

I would make it in DSV in oder to get

0,1,4,4

1,0,5,NULL

2,0,6,NULL

3,0,5,NULL

4,1,3,3

5,0,7,NULL

6,0,5,NULL

7,1,6,6

8,0,7,NULL

then apply lastnonempty aggregation function for the measure latchedVoltage

|||

Hi

I just wanna plot a graph for such signal implementation. This works!.

Thanks

Tony

Saturday, February 25, 2012

Can I use dimension in SQL SERVER 2005?

I hope to pass a dimension such as int A[5] to a stored procedure

A[0]=10

A[1]=20

...

Can I do that in sql server 2005? if so , please give me a sample, thanks!

I dont think you can do that in SQL yet. You could pass a delimited string and parse it over in your stored proc.

can I use an attribute in a calculation?

i have an instrument dimension. the instrument dimension has a conversion ratio attribute (i.e. each instrument has a conversion ratio). the conversion ratio attribute is not interesting for analysis in itself, but is often used in calculations.

I want to say somehting like this:

for all instruments, show me sum of [measures].[Price] * ~ CONVERSION RATIO OF THAT INSTRUMENT ~

this actually works ok at the detail level. however, when I start rolling up instruments into say, sectors, then i get a type mismatch error saying that teh "All" member cannot be converted to type double.

In general, is it valid to use a non-measure group dimension attribute to perform a calculation? If not, should any attribute that might participate in a calculation be created as a measure (even though it has no real analysis value by itself). Or should I do the

"Fact * Looked Up Attribute"-type calculation in the DSV and create a new Fact called something like [Price X Conv Ratio]?

The first of these queries generates the error you mention above. I believe the second handles the logic in the manner you are wanting. I haven't had a lot of time to look at this, so I would highly recommend you independtly verify the results of this logic (or the version you implement) to make sure the values are correct. Also, I used a SUM function to aggregate the values in the calculated member. There are a number of functions available to you. In this situation, AVG may be more appropriate.

Thanks,
Bryan

Code Snippet

withmember Measures.[x] as

[Measures].[Reseller Sales Amount]/[Product].[List Price].CurrentMember

select

{[x],[Reseller Sales Amount]} on 0

from [Adventure Works]

;

withmember Measures.[x] as

SUM(

[Product].[List Price].[List Price].Members,

([Product].[List Price].CurrentMember, [Measures].[Reseller Sales Amount])/

[Product].[List Price].CurrentMember.MemberValue

), format="#,#"

select

{[x],[Reseller Sales Amount]} on 0

from [Adventure Works]

;

Thursday, February 16, 2012

Can I reserve all the rows in Fact table when add the dimension in cube

My fact table join with a dimension table with a foreign key.
But there some foreign key in the fact table which doesn't exist in the
dimension table.
When I add the dimension in cube, all no match rows will be filtered out
Can I reserve all the rows in Fact table when add the dimension in cube?
I'd suggest that as a part of your data load you establish a process which
selects all the foreign keys from fact table that are not found in the
dimension and add them to the datasource for dimension (it can be a table or
a view). Then your dimension and cube will be consistent
Regards,
Ilona Shulman
Senior Development Consultant, DBA
SSE Inc
http://www.sseinc.com
"ad" <ad@.wfes.tcc.edu.tw> wrote in message
news:elh4y1lqEHA.1728@.TK2MSFTNGP10.phx.gbl...
> My fact table join with a dimension table with a foreign key.
> But there some foreign key in the fact table which doesn't exist in the
> dimension table.
> When I add the dimension in cube, all no match rows will be filtered out
> Can I reserve all the rows in Fact table when add the dimension in cube?
>
|||Analysis Services dislike bad data quality.
so you have to insure that all your keys in your fact table exists in your
dimension.
Generally we create an "unknown" member in the dimension.
For example, the key "-1" is the unknown dimension member.
Then every row in the fact table as the -1 as the default value, so if the
dimension member doesn't exists, your fact table contain -1 and can be used
in the cube.
Change your ETL process to do this job.
"ad" <ad@.wfes.tcc.edu.tw> a crit dans le message de news:
elh4y1lqEHA.1728@.TK2MSFTNGP10.phx.gbl...
> My fact table join with a dimension table with a foreign key.
> But there some foreign key in the fact table which doesn't exist in the
> dimension table.
> When I add the dimension in cube, all no match rows will be filtered out
> Can I reserve all the rows in Fact table when add the dimension in cube?
>