Delivery of reports with different local timezone convert from UTC time

I have a central database storing events with UTC time (current location is Europe). I have a request to send historical reports (e.g Aug 2013 report) to US, Asia and I required to convert the UTC time to US and Asia when generating reports. I am thinking
the best way of design the dimension table, shall I have a history timezone table to match the utc time id with US and Asian timezone in order to do the historical report time conversion , considering the daylight saving condition as well. Any suggestions
are welcome. Thanks.

What version of SQL Server you are using? How do you generate reports? If it is SQL Server 2012 take a look at
--Retrieve the current time as a datetimeoffset (comparable to the venerable GETDATE function):
                SELECT SYSDATETIMEOFFSET()
---Retrieve the server’s current time zone offset (the number of minutes before or after UTC):
                SELECT DATENAME (TZoffset, SYSDATETIMEOFFSET())
---Convert from datetime to datetimeoffset (note that this uses the server’s current time zone offset, which could be inappropriate for historical dates):
                SELECT TODATETIMEOFFSET (datetimevalue, DATENAME (TZoffset, SYSDATETIMEOFFSET()))
---Convert a datetimeoffset value (in this case, local server time returned by SYSDATETIMEOFFSET) to a new time zone offset:
                SELECT SWITCHOFFSET (SYSDATETIMEOFFSET(), '-05:00')
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • How to schedule multiple reports with different local to change static field language ?

    Hi all,
    we have requirement that we will place multiple schedule request on same server ,This schedule request will be different local setting with parameter value like: en-GB,en-US,Chinese...etc .We used translation Manager for this and it takes this parameter and change report language for static fields.
    problem is that ,on server it is not working properly,we tested for one report .if we pass prompt value to change local setting in report the we need to log off and login again in CMC to reflect new local or on BI Launchpad we need to refresh page then it shows new language.
    How we can do this with multiple scheduled report which will have different local value like en-GB,en-US,Chinese,German....?These schedule request are getting placed in server by one user .
    Please help us with sample code.
    Thanks
    Madan

    Hi,
    The only approach I can think of is to create a template report which uses variables
    For each column you would need to variable
    v_columnAName and v_columnAValue
    v_columnAName would have a if statement in it
    =if([client]="clientA" or [client]="clientC";NameOf([firstName]);if([client]="clientB";NameOf([SSN]);NameOf([lastName]));
    v_columnA would have a if statement in it
    =if([client]="clientA" or [client]="clientC";[firstName];if([client]="clientB";[SSN],[lastName]));
    This would only work when you had a small set of clients.
    This might be more managable if it was done in the universe
    Regards
    Alan

  • How to create a report with different page sizes

    Hi,
    I would like to create a report with different page sizes, it's possible to do it with diadem?
    When I change the layout parameters, changes afect to all sheets...
    Is there a way to change page size individually for each sheet?
    Thanks in advance.
    Marc

    Hi Marc,
    You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach.  This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
    ' Print PDF Page by Page.VBS
    OPTION EXPLICIT
    Dim i, Path, OldPrintName
    Path = AutoActPath & "2D Stacked"
    Call DataDelAll
    Call DataFileLoad(Path & ".TDM")
    PDFFileName = Path & " Page by Page.pdf"
    IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
    OldPrintName = PrintName
    PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
    PDFResolution = "72 DPI" ' "2400 DPI" , "default"
    PDFOptimization = TRUE
    PDFFontsEmbedded = FALSE
    PDFJPGCompressed = "high"
    PrintOrient = "landscape" ' orient paper
    Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
    PrintLeftMarg = 0.181
    PrintTopMarg = 0.181
    PrintWidth = 10.67
    'PrintHeigth = 7 (read-only)
    Call WndShow("REPORT")
    Call DocStart ' Begin multi-page document/print job
    FOR i = 1 TO 4
    Call PicLoad(Path & ".TDR")
    Call GraphSheetNGet(1)
    Call GraphSheetRename(GraphSheetName, "Page " & i)
    Call PicUpdate
    Call PicPrint("WinPrint") ' Add a page to be printed
    NEXT ' i
    Call DocEnd ' End multi-page document/print job
    PrintName = OldPrintName
    Call ExtProgram(PDFFileName)
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • BO xi 3.1 u2013 schedule a template for multiple reports with different column

    Hi,
    I need to migrate the existing reports from SQL Server Reporting Services to BO, and the column order in the report is very important to the clients since clients have existing code to ingest these reports into their database. Now I want to schedule a single template with different parameters for all reports in BO, or create a single template with lot of parameters for all reports. My question is how I might use one template to create multiple reports with different column orders in the reports?
    For example, client A has the following column order in their report: firstName, LastName, DateBirth, SSN. Client B has the following column order in their report: SSN, DateBirth, LastName, FirstName. Can I use one template to create these multiple reports?
    Thanks!

    Hi,
    The only approach I can think of is to create a template report which uses variables
    For each column you would need to variable
    v_columnAName and v_columnAValue
    v_columnAName would have a if statement in it
    =if([client]="clientA" or [client]="clientC";NameOf([firstName]);if([client]="clientB";NameOf([SSN]);NameOf([lastName]));
    v_columnA would have a if statement in it
    =if([client]="clientA" or [client]="clientC";[firstName];if([client]="clientB";[SSN],[lastName]));
    This would only work when you had a small set of clients.
    This might be more managable if it was done in the universe
    Regards
    Alan

  • Profit center report with cumulative local currency amount

    Hi,
    I am working to create a report with cumulative local currency .,so that the report data should tally with GL account balance (FS10N).
    This report is for balance sheet accounts . Whenever we used to create report with either report painter or drill down report, the option for defining key characteristics is showing only the profit center currency, company code currency or transaction currency.No option for cumulative local currency.
    Thanks,
    Anitha

    Hi Srinu
    RPC0 applies to CC reports and not PCA reports
    I am surprised by your statement that Summary reports derive values based on Current Fx rate
    GLPCA and GLPCT are the tables that are used in line item and Summary reports.. check the value in GLPCT and do they match with GLPCA or not
    I am still not convinced about your issue.. Why do you need currency conversion in report?
    Assume your comp code curr is USD and Cont Area curr is EUR.. You will be able to see all reports in both currencies without any conversion required during report execution. This is because all the transactions are recorded in these two currencies
    Ensure that the All Currencies indicator is turned ON for your contr area
    Br. Ajay M

  • Print same report  with different watermark

    i want to print the one report with different watermark
    means suppose we generate the report and print the 10 copy of the same report but want 4 copy with one watermark and 6 with different watermark.
    i have the number of watermark copy in the table .
    pls give me the solution
    regards
    anurag

    Thank you for your helpful response.  What I am really asking is this -- when there is a CR2008 report based on db1, table1, and you want to use the SAME report with an identical table in a DIFFERENT database (db2, table1), can I easily use the same report?  Or, do I have to generate another version of the report?
    Thank you again.
    David

  • How to create Report with different work sheets in XL Reporter

    Hi All
    I want to create a report in xl reporter where one report has multiple work sheets
    Regards
    Farheen

    Hi,
    There is no option to create report with different work sheets in XL Reporter. You may only use one sheet.
    Thanks,
    Gordon

  • Design a single template for multiple reports with different column order

    Hi,
    I need to migrate the existing reports from SQL Server Reporting Services to Crystal Report 2008, and the column order in the report is very important to the clients since clients have existing code to ingest these reports into their database. Now I want to create a single template with lot of parameters for all reports. My question is how I might use one template to create multiple reports with different column orders in the reports?
    For example, client A has the following column order in their report: firstName, LastName, DateBirth, SSN. Client B has the following column order in their report: SSN, DateBirth, LastName, FirstName. Can I use one template to create these multiple reports?
    Thanks in advance.

    -As I mentioned you can find Template Field object in Insert menu of crystal report Designer 2008.
    As soon as you select Template Field object you will be able to see a box beside ur mouse cursor. Drag and drop this box at required place. Now when you place this object in report you will get some thing like this "<TemplateField1>" listed under Formula Fields tree. Double click "<TemplateField1>" formula to add your conditions.
    -I have not tested it for large amount of Customers. However as the number of customer increases the number of conditions will get increased.
    For the customer that want the same ordering of columns you can put those customers under one condition.
        for Example...
              if(?Client in ['clientA','clientA']) then
                        <TableName>.<Field>......
    -What do you mean be 40 columns? Do you mean 40 fields or you want to show 40 columns in report? Please elaborate.
    Regards,
    Amrita
    Edited by: Amrita Singh on May 21, 2009 7:54 AM

  • Failed to execute with the error Overflow converting from...

    I have a query filter for UPC in Webi Report. The report is not working for one UPC (for other UPC's the report is working fine)...it gives error "failed to execute with the error Overflow converting from '6218090010'. (WIS 10901)". The same error is coming when I ran MDX in MDXTEST command in BW. When I take the UPC filter from the query filter the report runs fine and I see this UPC in the report. The data source is Bex and we have recently upgraded to SAP EHP 1 for SAP NetWeaver 7.0.
    Regards
    Sharma

    Hi,
    Under normal circumstances it should be enough to restart the connection service.
    As far as we know there is no formal solution to this problem from SAP yet but restarting the connection service is much less of an interuption compared to restarting the the SIA.
    Re-starting the connection service should resolve this issue. since, Connection service is only related to DeskI and Rich Client re-statrng wonu2019t impact other business objects components including java report panel.
    All the Best,
    Madhu....

  • How to convert from military time (string) to regular time?

    How to convert from military time (string) to regular time?
    First of all I need to let you know I'm very new to Crystal Reports, so I apologize and will need detailed instructions if possible.
    I have created a Crystal Report pulling information from the received time field.  On the report, the time is showing in military time (ex. 16:00:00).
    How can I convert this time to normal time (ex. 4:00:00)
    Since the field is a 'String' field and not a 'Time' field, I do not have the option of changing it under the field properties.
    I hope someone can help with this.
    Thank you in advance.

    As my fields were date only and not datetime, I ended up using the following,
    If IsDate({CallLog.EmailRecdDate}) Then
         CDate({CallLog.EmailRecdDate})
    Else
         CDate(0,0,0)
    You answer lead me in the right direction.
    I'm still having an issue with the 'Else' statment returning 12:00:00 because of the CDate(0,0,0), but I'm not sure what else I can use to return a blank space on the report.  Any ideas?
    Thanks again!

  • How to report with different time zone dynamically based on user's account?

    Hello
    I am wondering is there a way to change the report's date & time data based on user's locale setting in OBIEE?
    Let's say the user log in to OBIEE with eastern time zone setting. The data that's in the database is storing a transaction of $400 at 1am Pacific time.
    So when this user run a query which does something like 'select date, transaction, amount from date, transaction, sales where this = that', it should display the $400 amount done at 4am eastern time instead of 1am pst.
    What I have done is to have data stores in date dimension to be UTC time, and I have also changed the data type of the date column to be 'local time zone'. DB is Oracle DB 11G now.
    Now this query works perfectly well in the DB as long as I run the following commend first:
    Alter session set time zone = 'whatever my time zone'
    and then
    Select date, transaction from tables..
    The date displayed will automatically be converted into different time zone..
    Since everything is working nicely from Oracle DB level, I need to know how to make it work when OBIEE sends the same query down to the DB..
    I know that, probably I will have to enter the above alter session commend in the connection pool, however, I can't hardcode the time zone value.
    I also don't want to store user's time zone in the user table because these users travels a lot. So even if his table setting is EST, but at a given day he can be traveling to pst time zone and view reports.
    Is there a way to dynamically set the time zone based on user's account locale setting?
    Let me know if you guys have implemented something similar or not
    Thanks

    garuda wrote:
    Hello Sarvan
    I have already done that part at the DB level and it is working perfectly with alter session commend before the query.
    My question is, how do I configure OBIEE so that before each user runs a report from BI, the alter session commend will be fired with each user's personal locale time zone setting passed through so that each user will be able to view data according to their different time zone?did you tried with Connection scripts(Execute On connect) in Connection pool.write ur Alter commend to Change Time Zone in this script box.

  • Use same report with different MySQL database

    I am using CR2008 with MySQL 5.1.
    I have a report that works with one of the tables (T1) in a MySQL database (DB1).  I have another MySQL database (DB2) with the same table name and structure, except that the data has been updated.
    I want to use the same report, but just ask CR2008 to now use DB2 and T1.
    Try as I may (using Set Data Source Location...), but I'm not getting anything to work.
    I looked for a previous thread on this, but was unsuccessful. 
    Thanks for any help.
    David

    Thank you for your helpful response.  What I am really asking is this -- when there is a CR2008 report based on db1, table1, and you want to use the SAME report with an identical table in a DIFFERENT database (db2, table1), can I easily use the same report?  Or, do I have to generate another version of the report?
    Thank you again.
    David

  • Invoice report with different currencies

    Dear friends,
    I need a report for invoices. I want to choose currency from selection screen. And report will calculate invoice amount with this currency. Does SAP have a standard report for this?
    How can I see invoice list with different currency?
    Thanks

    Thanks for your interest. But I am looking for invoce report. For example I have 3 PO
    PO number      Currency      Amount
    121100                EUR             100
    121101                TRY              200
    121102                USD              300
    I want to see a invoice list like below
    Selection screen :
    Report Currency : USD
    When I execute I want to see report like
    PO number      D.Currency      Amount          Report Currency (I choose USD and amount will exchange to USD)
    121100                EUR             100                       68
    121101                TRY              200                      150
    121102                USD              300                      300
    Is it possible?

  • Maintaining formats(layouts) on Crystal report with different database

    I was just needing some help maintaining the layout of a report but using a different database. The databases are very similar for example, a field for the database in use is line1xxxx what I wish to do is keep all the formating & point it line2xxxx database. Where line1 is the original Database & Line2 is the new database I wish to use. Both of these databases reside in the same folder its just that I need identical reports for both Line 1 & Line 2 & am trying to get away from duplicating all the work I did on the Line 1 report.
    Hopefully not too trivial for this forum.
    Thanks in advance.

    If you have same tables in both the databases then open the report and go to menu option in the report database-->set data source location and create new connection in the bottom window and select both existing connection from top window and new from bottom and click on update. Now the report points to the new database, so now use save as option to save the report with some other name so that you can have the old report with old connection and the new one with new connection.
    regards,
    Raghavendra.G

  • WS-SDK Scheduling two instances of the same report with different params

    I'm using the web services SDK for Business Objects XI 3.1 SP 2 to schedule reports. I've got it so that I can successful schedule a report with prompts, setting the value for the prompt and running the report.
    However, I'm now trying to schedule two instances of the same report using a single call to BIPlatform.Schedule. It creates the correct number of new instances, the last of which is completely correct. The first one (and in fact if I do more than two all the rest except the last) lose the parameter value from the prompt and the schedule information and the type. So for example if I schedule two instances, both PDF, both for 8am tomorrow with parameters of 1 and 2, I get:
    A Webi instance, scheduled to run immediately with no parameters specified and
    A PDF instance, scheduled for 8am tomorrow with parameter 2
    Any idea what I'm doing wrong?
    Cheers,
    Jack
    Edited by: Jackson Pope on Feb 3, 2011 1:34 PM

    Can you possibly post your code here that sets params and schedules? Also as you schedule 2 instances on a single report in a sinlgle biplatform.schedule call(): as you query for InfoObject what you actually query for a single report isn't it, or do you schedule a report template and reschdule it previous instance?

Maybe you are looking for

  • Error installing RD Web Access role service on Windows 2012 R2 server

    I'm attempting to install the RD Web Access role service to test a VDI deployment but the installation keeps failing. I get the following error: Exception of type 'Microsoft.RemoteDesktopService.Common.RDManagementException' was thrown. As anyone els

  • PL/SQL toolkit -- checkbox values in array parameter

    I have the following issue that I have been staring at for a couple of hours now and unable to see what's wrong: I have a some-what complex PL/SQL application written, with lots of procedures, functions, etc. One of the stored procedures prints a che

  • NES proxy to WL slow with IE

    WL 5.1sp4 Solaris 2.7 NES 3.63 We are experiencing slow connections/delays to WL pages when going through NES using Internet Explorer. Even on WL 404 error pages. The pages load quickly, but the browser keeps the connection open for a number of secon

  • Variables with fixed value

    Is there in Java an operator that allow to a variable only a fixed set of values. For example the variable char color have only these value: "red","yellow",.. "etc".

  • Microsoft Remote Desktop - Works on 10.4 but not on 10.5

    I know that this is an OS 10.5 forum but the Mactopia website is useless and the forum there is non-responsive. Just wondering if anyone has any thoughts on why I'm able to connect to my office XP machine using 10.4 on an old powerbook over a wireles