Showing posts with label formula. Show all posts
Showing posts with label formula. Show all posts

Tuesday, March 20, 2012

current date/time formula

Hi,

I would like to have a date_last_modified field for one of my SQL
tables. Instead of coding my front end to keep up with this field is
there a way to user a formula for this column in Enterprise Manager so
that each time a record is created or updated the current date/time
will be inserted/updated? I tried using getdate() but then the field
always has the current time, which is not what I am looking for. I am
looking for the time the row is updated or created. Is this possible?
Thank you!For insert new record, set the default value to getdate().

For update on an existing row. A trigger will do that. The trigger work
for insert too.|||BUT the method I preferred is using stored procedure rather than a
trigger. trigger is unforgiving. In the case you want to manually fix
some data in the database, the trigger is always triggeed.

The client app invoke the stored procedure with all the parameters
except date_last_modified. The SP fills the date_last_modified with
GETDATE().

JOHN

Current date Prior year date

In details two seperate formulas for date (current range ie: 4/1/06 to 4/30/06), second formula for prior year same month and day range. Grouping is daily.
The formulas work but are seperated by range not picked. How do I get the date ranges side by side for comparison. I am not using cross-tab.
Any help always appreciated.

ok, after starting from square one I finally have the data I was looking for but....
formatting and suppression not doing as I had hoped.
The report looks like this:

Column1 Column2 Column3 Column4 Column5
Current date data data Prior Year data
4/1/05: Fri 200
4/2/05: Sat 47
4/1/06: Sat 247
4/3/06: Mon 30

How do I get these to line up in the same row without subreports?
I have suppressed everything I can think of...

HelpCan you post some sample data and the result you want?

Wednesday, March 7, 2012

Cube Size Estimation formula....

We need to estimate the size of a cube that will eventually have.... which
will get to the multi-terabyte range when mature....

I have a formula I picked up on the web below, but the sizes projected seem enormous... based on the data going in...

STORAGE FORMULA ESTIMATE - measure group storage (bytes) = (((2 * total # of attributes) + (4 * # of measures)) * # of fact records) / 3
Use the formula for each measure group in UDM model and sum the results. The total # of attributes argument reflects the # of attributes in dimensions that intersect the measure group.

Does anyone have another way of estimating cube size to validate this formula?

Regards,

Ray Cochrane, CPA
BI Consultant

Well. You can use a general rule of Analysis Services data being about 1/4 - 1/3 size of the same data stored in relational database.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||

Hi Edward,

I assume you would apply this rule of thumb to the size of just the data, i.e. excluding indexes etc. Is that correct?

Also, do you know of any links referencing this rule?

Cheers, Rob.

|||

Hmm :)

You call me to find you some references to this rule.

Here is some data for Analysis Services 2000. http://www.sqlmag.com/Article/ArticleID/19999/sql_server_19999.html
The data for T3 relational database was about 1.2 TB and data in AS was compressed down to 471GB

AS 2005 is behaving similarly.

Hope that helps;

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

Tuesday, February 14, 2012

Crytalreports.msi file

I have a barcode printing formula in my report.when I run the report it starts looking for Crytalreports.msi file.Is this file required to print barcode?I have a barcode printing formula in my report.when I run the report it starts looking for Crytalreports.msi file.Is this file required to print barcode?
It seems your report is trying to access unregistered COM of Crystal Reports.
It might be better to reinstall Crystal Reports in your user account.