Re: Calculate
- From: "dagriq via SQLMonster.com" <u48583@uwe>
- Date: Wed, 18 Mar 2009 15:42:52 GMT
hello,
in the AdventureWorks everything is working fine, the assignment used for [95]
writes in the empty cell.
In my project there is a report where we need to always display a specific
category ([Policy Revenues]) and all accounts assigned to this category. By
always, I mean when user selects a combination Year and Quarter(s) where
there is no data in the fact table (no transaction where one account is
involved).
Because the main query uses the Non Empty operator all empty cells (leaf
cells and non-leaf cells) are removed; my design is to replace some empty
cells (a subcube) with 0.
In the default MDX script (after the Calculate statement) what is allowed and
also persisted in terms of assignments/scoped calculations?
The assignment for a leaf-cell (valid record in fact table) is it persisted
(of course no other assignment will not re-write it)?
What about the non-leaf cells (aggregated cell)? Are they persisted?
So far in my tests the answer is No.
I did not find any documentation or best practices docs for this problem and
I really appreciate your help. In one book I found ' avoid make assignments
to leaf cells because the entire cube will be re-process'.
Thank you for your time
DG
dpuri wrote:
Could you explain, at a high level, why you think null cells need to be
set to 0 in your scenario, since that's still not clear.
As for 0's reverting to null, could you describe how to reproduce this
issue in Adventure Works - that would help in debugging/confirming, and
in identifying the cause?
- Deepak
Deepak Puri
Microsoft MVP - SQL Server
--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-olap/200903/1
.
- Follow-Ups:
- Re: Calculate
- From: dpuri
- Re: Calculate
- References:
- Calculate
- From: dagriq via SQLMonster.com
- Re: Calculate
- From: dpuri
- Re: Calculate
- From: dagriq via SQLMonster.com
- Re: Calculate
- From: dpuri
- Calculate
- Prev by Date: Re: Header table measure
- Next by Date: Re: Calculate
- Previous by thread: Re: Calculate
- Next by thread: Re: Calculate
- Index(es):
Relevant Pages
|