Basic BI questions of calculating formulas from raw data on 15-min and 1-hr intervals?

I'm new to BI and I'm working on a project that (I believe) can help me gain experience with this technology. The formula I'm working on now is really the simplest one.
We have 15-minute data that has tons of counters. I'm currently storing in a table called [Counter15MinCityDataRaw], like so:
Id City Date Hour Minute KpiValue Counters InsertDate
108823 Miami 20140930 9 0 100.00 Auto 2014-09-30 12:17:07.580
108824 NYC 20140930 9 0 0.50 Added 2014-09-30 12:17:07.580
108825 Vegas 20140930 9 0 12.00 Att 2014-09-30 12:17:07.580
108826 Miami 20140930 9 0 40.00 Man 2014-09-30 12:17:07.580
108823 Miami 20140930 9 15 100.00 Auto 2014-09-30 12:17:07.580
108824 NYC 20140930 9 15 0.50 Added 2014-09-30 12:17:07.580
108825 Vegas 20140930 9 15 12.00 Att 2014-09-30 12:17:07.580
108826 Miami 20140930 9 15 40.00 Man 2014-09-30 12:17:07.580
This is the raw data. The first formula I'll be working on is [TotalPopulation], that looks like this: [TotalPopulation] = (Q + (Auto+Man))
/ 400. Q equals the Number of quarters being processed (ie. Q =
1 for 15-minute interval, Q = 4 for 1-hr interval)
So my intial requirements is to create a report that displays the [TotalPopulation] for each City in 15-min and 1-hr intervals.
So I already created both [DimDate] and [DimCity] tables, although I don't think they're going to help when I calculate the 15-minute intervals and the 1-hr intervals. Also, can I use the raw data as
is for the fact table, or would I need to group the data by city and counter (in
this case Auto and Man) into a new fact
table?
So my question is: do I need a dimension table for the 15-minute intervals and 1-hour intervals? How would my Fact table look like? Would I also need a dim table for the Q variable?

If i understand it correct you can create one more dimension as DimQuarter, which will have members 15 Min interval, 30 Min interval, 45 min interval, 1 hour interval. 
The next step is to add a column on top of Raw Data for Quarter surrogate key along with existing dimensions.
Hope this will get you started.
Be the change you want.

Similar Messages

  • Conversion from raw data tiff format

    Hi,
    I am working on badi "EBPP_INVOICEDETAIL" ,there are two implementation available.
    FM "APAR_EBPP_GET_SDINVOICE_DETAIL"  is called inside the method "GET_INVOICE_DETAIL" ,
    This FM is providing a PDF file for billing document,
    I have a reqd for a new implementation and using a copy of the FM to get a TIF file for billing instead of the PDF.
    Could some one please provide me the logic for doing so, OR
    The FM to convert from raw data to tiff format.
    Regards
    Bidyut

    SQL> select utl_raw.cast_to_number(hextoraw('C20221')), to_number(rawtohex(hextoraw('C20221')), 'xxxxxxxxx') from dual;
    UTL_RAW.CAST_TO_NUMBER(HEXTORAW('C20221')) TO_NUMBER(RAWTOHEX(HEXTORAW('C20221')),'XXXXXXXXX')
                                           132                                            12714529

  • Creating XML from raw data

    I am trying to create xml from raw data. It works well in the format builder but
    when I instanciate the MFLObject and run convert to xml, the output only contains
    wrappers for my first field described in the mfl. Are there any known issues
    using this progmattic conversion to XML.
    My mfl is the following:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE MessageFormat SYSTEM 'mfl.dtd'>
    <!-- Enter description of the message format here. -->
    <MessageFormat name='BossRecord' version='2.01'>
    <FieldFormat name='Header' type='String' length='102' codepage='windows-1252'/>
    <StructFormat name='TransactionControlRecord' delim='999'>
    <FieldFormat name='TransactionTypeNumber' type='String' length='3' codepage='windows-1252'/>
    <FieldFormat name='TransactionData' type='String' codepage='windows-1252'>
    <LenField type='Numeric' length='4'/>
    </FieldFormat>
    </StructFormat>
    <StructFormat name='Generic' repeat='*'>
    <FieldFormat name='GenericTypeNumber' type='String' length='3' codepage='windows-1252'/>
    <FieldFormat name='GenericData' type='String' codepage='windows-1252'>
    <LenField type='Numeric' length='4'/>
    </FieldFormat>
    </StructFormat>
    <FieldFormat name='IgnoreTheRest' type='Filler' optional='y' length='1' repeat='*'>
    <!--
    This field is useful for testing partially constructed formats. Adding
    this field to the
    end of a format will cause any leftover bytes on the end of a binary file to be
    ignored when the data is converted to XML.
    -->
    </FieldFormat>
    </MessageFormat>
    Are there any issues with this that are easy to spot?
    Here is some sample output:
    _BossRecordDoc : <BossRecord>
    <Header>0601uskyloupw7vu0 IBVRTR 000006RSQ1010246000000000000020436000001-01-01-00.00.00.00000000000100170</Header>
    <Header>90100581D4EBC00AA3C18629ACA0004AC02E54BD289357023141961111F1111 99900207141D4EBC00AA3C18629ACA0004AC0</Header>
    <Header>2E54BD2893570231RIBBONS & BUTTONS 9 00000000000010.50CAD00000000000000.5</Header>
    <Header>0USD00000000000000.00USD00000000000077.00CAD 0CAUS00000000000000.91KGSA215D100CF3C18619AC</Header>
    <Header>90004AC02E54B 01 0001-0</Header>
    <Header>1-012003-04-072003-06-2501P/P03003984196000010100000000000000.00CAD 00
    FR00000000000000</Header>
    <Header>.0000000000000000000.00KGS00000000000000.00USD 00UPS T1</Header>
    <Header>0001-01-010001-01-01 0 000000000000000.00000000000000000.00USD0</Header>
    <Header>000000000000000.00 1 22222222222220 0100304061DC30500AA3C18629ACA</Header>
    <Header>0004AC02E54B1D4EBC00AA3C18629ACA0004AC02E54B</Header>
    <Header> 0010001-01-01 00000000000000.00USD00</Header>
    <Header>000000000000.00CAD00000000000010.00CAD</Header>
    <Header> 00000000000010.00CAD000000000000000010001-01-01K00404862A8D2C00AA3C186</Header>
    <Header>29ACA0004AC02E54B1DC30500AA3C18629ACA0004AC02E54B001 PURPLE RIBBONS</Header>
    It just keeps finding my first record instead of finding the remaing structure.
    I appreciate any help.
    Thanks,
    Michael

    Okay, I've got some coding off a site that looks like it will do what I want. It's quite a robust applications which will do more than I need but as long as it does at least what I want, i could care less. As it will extract files from the datastream for me, it is going to save them to disk.
    I believe I have to specify a directory to save it to. I believe this is the line I'm going to modify, so assuming that's the case, how do I specify a directory here:
    private File fileOutPutDirectory = null;
    Do I have to use absolute paths or can I use relative. Also, what directory construct is expected by java? Anyone with an example of what urls are supposed to look like in this case?
    Thanks,
    destin

  • Add ability to use raw data in the Histogram and clipping indicators

    I have posted this as an ACR and Lightroom Feature Request at the Photoshop Family site.
    http://feedback.photoshop.com/photoshop_family/topics/raw_data_histogram_display_lightroom _and_adobe_camera_raw?rfm=1
    It was suggested I also post it here to for more visibility.
    "The current Histogram display in Lightroom and Adobe Camera Raw accurately display the file image data for JPEG, PNG, PSD, TIFF file types, but not for raw files.
    When a raw file is demosaiced and a camera profile applied it is no longer possible to determine the actual R-G-B-G2 raw data clipping levels. This is useful for determining best exposure settings (ETTR) when shooting tethered, evaluating exposure bracketed images, or for simply determining your camera's exposure metering accuracy.
    This can be added as a user-selectable option button in the current Histogram to allow viewing of the camera file's R-G-B-G2 raw data values."
    This has been requested in the past, but there appears to be mixed feelings and some confusion as to its benefits:
    http://forums.adobe.com/message/3967184#3967184
    The sole objective of  using the raw image file data in the Histogram is to determine if the image file contains clipped pixels. The actual raw data preview image is of no value other than to "accurately" display those pixels using the Highlight and Shadow clipping indicators. A good example of this implementation is the RawDigger application available for download here:
    http://www.rawdigger.com/

    Yes but it can be problematic in so far as some users find it can slow down their system. When you first switch it on it can take a while for all your files to be updated. If you're in the habit of making edits and adjustments to multiple selected images this too can slow things down. Anyway, to activate the it you'll, need to open
    Catalog Settings from the
    File menu, then set the
    Metadata: Automatically write changes into XMP to On - see attached screenshot.

  • How to transfer music from PC to my iPad mini and iTunes Store app issue

    I am new with IPad mini, and have issues with music on device:
    A) I wonder whether I can transfer music from PC to device (A 1432) and
    B) I have problems 'approaching' iTunes Store app because it shows on screen interface for iTunes U app (which I downloaded previously and deleted it in the meantime because of this problems)...cannot shut it down because there is no way to exit this mode.
    hope someone will help so I can finally have some music on device.
    Thanks!

    Thanks a lot Ralph9430!
    I did manage to solve problem of music transfer iPad mini-PC, however I didn't succeed in approaching iTunes Store and there is nothing in the manual about it.
    When I open application I have iTunes U interface and cannot move anywhere but close app. I did try to re -enter pass and ID in iTunes Store app settings but nothing changed.
    Does anyone have any idea what to do in order to have approach to ITunes Store.
    Tnx!

  • Reminders calculated back from Due Date?

    I'm a newbie to workflow and would like to set reminders (on notifications) to be calculated based on a due date rather than from the creation date of the notification. e.g. due_date attribute on a notification is set say 50 days in advance. I want to send reminders at 10, 5, 1 days before it's due. How do I do that?

    Hello,
    Once you track the due date for a notification, you can set the timeout accordingly. So each time your notification timeout and you send a reminder notification, you set the timeout of the notification dynamically on the time remaining and loop back to the notification activity.
    Cheers,
    Raja

  • IPhone SDK: How to create an image from raw data

    Creating a UIImage from some form of bitmap file format is easy, whether you let UIImage load the file itself or create it with an NSData. But what if you have raw bitmap data in memory and you want to create an image?
    In Cocoa NSBitmapImageRep can be created by passing it a pointer to a block of memory and the relevant heigh, width, bit depth etc. information. From that you can easily create an NSImage. There doesn't seem to be anything equivalent on the iPhone. CGImage can be created but it looks like you have to write a CGImageProvider. CGBitmapContextCreate takes a void * to a block of memory. Does it clear that block?
    Is there a good way to do this?

    ElNono wrote:
    You can't do RGB565 on a CGImageRef/CGContextRef. The only 5bpp modes supported are 1555 ARGB or 5551 RGBA. If you just need to display the image, use OpenGL. One of the supported texture formats is RGB565. If you need to save the image then you're going to have to pre-convert it to RGB888.
    hi ElNono , i have test the RGB888 data now , the image can show , but another problem is the image just like serveral picture over lap together , also is blurred , my code is here:
    const size_t width = 1024;
    const size_t height = 768;
    const size_t bitsPerComponent = 8;
    const size_t bitsPerPixel = 32;
    const size_t bytesPerRow = (bitsPerPixel * width)/8;
    CGBitmapInfo bitmapInfo = kCGImageAlphaPremultipliedLast;
    CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
    NSString *imagePath = [[NSBundle mainBundle] pathForResource: @"Test" ofType: @"rgb"];
    NSFileHandle* file = [NSFileHandle fileHandleForReadingAtPath:imagePath];
    NSData* imageData = [file readDataToEndOfFile];
    CGContextRef context = CGBitmapContextCreate((void*)[imageData bytes], width, height, bitsPerComponent, bytesPerRow, colorSpace, bitmapInfo);
    CGImageRef imageRef = CGBitmapContextCreateImage (context);
    UIImage*rawImage = [UIImage imageWithCGImage:imageRef];
    CGColorSpaceRelease(colorSpace);
    CGContextRelease(context);
    CGImageRelease(imageRef);

  • Grabbing xml from raw data post to my webserver

    Trying to figure out how to catch xml being posted to my webserver. The client's instructions are:
    The HTTP and HTTPS delivery method performs a text/plain mime binary data post to the supplier's webserver. Suppliers must develop a catch web page. This page will receive the binary post.
    This is an xml document that I must capture and write to disk. I'm intending to use a java servlet to grab this data but java is new to me. It looks like HttpServletRequest is what I'm looking for. Anyone with any pointers?
    thanks,
    destin

    Okay, I've got some coding off a site that looks like it will do what I want. It's quite a robust applications which will do more than I need but as long as it does at least what I want, i could care less. As it will extract files from the datastream for me, it is going to save them to disk.
    I believe I have to specify a directory to save it to. I believe this is the line I'm going to modify, so assuming that's the case, how do I specify a directory here:
    private File fileOutPutDirectory = null;
    Do I have to use absolute paths or can I use relative. Also, what directory construct is expected by java? Anyone with an example of what urls are supposed to look like in this case?
    Thanks,
    destin

  • How do I keep the music from my old 1st gen mini and put it on my new ipod touch without loosing it. the computer I used to load the mini was stolen quite some time ago????

    How do I keep my music from my old 1st gen ipod mini when the computer that I originally loaded it with was stolen more than 5 years ago and transfer all the music onto my new ipod touch? My fear has always been that plugging my mini into another computer and attempting to download more music onto it or take what's on there off will end up erasing all of it because of file sharing regs. I would really prefer not to have to repurchase several hundred dollars of music as many of the original cd's that I used to download have been either lost or damaged over the years. Is there anything I can do????

    See:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Using relational data from SQL data source in Planning and Essbase

    Hi,
    How do I take sample data from a SQL data source and bring it into a Hyperion Planning application? I understand that when creating Planning applications, a link between a relational data source and Essbase must be established, because the relational database holds the metadata while the database outline is stored with Essbase. However, all I am currently able to do is load the data into Planning applicaitons via EAS, where I right-click on the Application database, hit load data, and select from either a .txt file or an excel file. Do I need Oracle Data Integrator? Any help or insight would be greatly appreciated, as well as corrections to any incorrect assumptions I may have made in this post. Thank you.

    When you import your file (Excel or text), you're importing it using a Load Rule in EAS. To load from SQL, you simply create a SQL load rule. You'll load data the exact same way (via EAS), but with a different type of load rule. The load rule will contain the SQL that queries the database. You can preview your data in the load rule the same way you would with a file.
    If your SQL is very complex, I'd recommend creating a view and loading from that view. But otherwise it's pretty straight-forward.
    The only catch is that you need to configure a database connection (to your relational database) on the Essbase server. The Essbase DBA guide will show you how to do this.
    You COULD use ODI, but I tend to only use it for loading metadata.
    Hope this helps,
    - Jake

  • No sound from Apogee Jam with iPad mini and Lightning-30 pin adapter

    Hello everybody.
    I'm trying to use my Apogee Jam with iPad mini but I am unable to hear any sound from it. Jam seems to work, since the led become green and react to the guitar signal. I tried two different guitars and different cables but nothing changes. Jam also works perfectly on MacBook Pro and garage Band, so I first assumed the issue was in the iPad or in the Lightning-30 pin adapter (genuine).
    Oddly on AmpliTube I can tune the guitar, so some signal arrives to the iPad, but I can't do the same on JamUp, where the tuner seems not to reiceve any signal. Are there some settings I should check on the apps?
    Thanks for any suggestions!

    Make sure you have the monitor input turned on in GarageBand. http://youtu.be/Eb8bN3tExio

  • I change the credit information from my brother's to mine and now I cann't load anything even it is free or purchase

    I do not know what to do

    You either have a Free account or you have a credit card on file.  If you want to set up a free account, you will not have the ability to purchase anything, including In App purchases. 
    Here are directions on how to set up a free iTunes account:
    http://support.apple.com/kb/HT2534

  • Generating a PDF file from the date entered on line and serving it to user

    All,
    I need to create a page where the data will be entered by the user outside the company.
    The requirement is to create a pdf file which dynamic images and a bar code and server ir once the user clicks a button.
    In short, they do not want the user to go to the report manager or process monitor to see the image.
    Any thought on how this can be accomplished ?

    Is there a special reason to create PDF file? I have generated dynamic images and HTML content including Barcode based on user data entry on the fly.If you need more information, please contact me at [email protected]

  • Use a Parameter or Formula in the Date() function

    I am trying to filter a result set utilizing the Date() function.  I am trying to get all of the data between June 1st of a given year, and a parameterized date.  Here is the formula
    {ReportStatic.rpsActualSaleDate} >= Date({@fPrevioustoLastYear}, 7, 1)
    and {ReportStatic.rpsActualSaleDate} < DateAdd("yyyy", -2, {?pDateEnd})
    and {ReportStatic.rpsSaleStatus} = 1
    The value of fPrevioustoLastYear is '2008'
    The report is returning 0 records.  I think it is because the Date() function isn't recognizing the formula (fPrevioustoLastYear) as a valid input.  However when I "Save and close" the formula editor doesn't find any problems with the formula.
    What should I be doing differently?

    If {@fPreviousToLastYear} is in fact 2008, I don't see an issue (with the possible exception that it should be a number, not a string; convert with CInt()).  Please post your formula for that field.
    Also, I have to ask what the value of {?pDateEnd} is.  If it's like today, no records will fit the criteria because you'd be checking if the date was between 7/1/2008 and 3/29/2008 (you're subtracting 2 years from the parameter), which is a null set.
    HTH,
    Carl

  • Display Raw data image with JSF

    Hi,
    I have a raw data image in bytes and I need to display this image using JSF.
    How to do?
    Thanks
    Jamil

    The best approach is to use a servlet that gives you back an image, using setContentType("image/...") and setContentLength(...)

Maybe you are looking for

  • My Outlook 2003 contacts and my calendar will not sync in either direction.

    After updating my iPhone & iTunes software to the latest version my phone will only sync my Outlook  2003 contacts from the phone to my computer and my calendar will not sync in either direction. Can anyone help?  It was all working perfectly before

  • Bcp out to windows named pipe

    I'm trying to export from bcp to a Windows Named Pipe.  Is this supported? I'm getting the error below when running this export... "bcp" [SQL_Class].[dbo].[Customer_table] out "\\.\pipe\testpipe" -S 12.12.122.12,12121 -U sa -e "err.txt" -o "out.txt"

  • Smartform - Handling Static & Dynamic Windows - Very Important

    Hi, This is in regards to a 5 page smartform that I have been assigned to develop. One concern of mine in associated with the Static (non-moving, non growing) and dynamic (moving & growing) fields in windows. 1.     In a smartform, how do you handle

  • Acrobat Reader won't print

    I installed OS 10.6 and now 10.6.1. Acrobat Reader 8 wouldn't print. Installed Acrobat Reader 9. Won't print. Canon MP530 printer gives this error message: "Unable to open raster stream. No such file or directory." No problem previously, with 10.5 an

  • Configuration of approvals

    Hi, Can someone please tell me where to look and configure for approvals. The scenario is "Approver is not configured for forms that are set to expire in X days after submitting the form". so the form is forwarded to experts which shouldnt. Regards,