Report Builder - Trying to find data in a second Dataset based off of two items in the current dataset

The situation:
I have two datasets for collecting meter reads. One is for the last Raw read, the other is for the last Billed read. Each table has the reads for machines based on the serial number and meter type. For example:
Raw - 
SN: ABC123456
Read Date: 8/1/14
Black Impressions: 237
Color Impressions: 136
I need to generate a report that has both sets of reads, preferably under the same Meter Type
Black Impressions
Serial Number
Read Date
Raw Read
Bill Date
Bill Read
I was thinking I could use a Code function to return the Billable Date and Read. But to do so I would have to pass three different items over to the code and I am not sure how to do so. As you will see in a second, I know very little about VB coding, but
here is along the lines of what I was thinking. 
Function BillableMeterRead(ByVal metername As Decimal(0), billablemetername as Object(0), billableread As Object(0)) as Decimal
ct=0
fct=0
For Each item As Object In billablemetername
ct+=1
If metername=billablemetername Then fct=ct
Next
ct=0
For Each item As Object in billableread
If ct=fct Then return something
ct+=1
Next
End Function
So am I close at all?

Lookup only works in a one to one relationship. That's not what I am trying to do here. Printers have more than one type of page count. There are Black Impressions, Color Impressions, and Page Count (for example). So I want to have a report that shows the
Billable Pages for an asset (from one dataset) and then the last Raw pages for the same asset (from the second dataset). 
For example I would want one of the lines to be...
Serial Number, Last Billed Black Impressions Read Date, Last Billed Black Impressions, Last Raw Black Impressions Read Date, Last Raw Black Impressions, Last Billed Color Impressions Read Date, Last Billed Color Impressions, Last Raw Color Impressions Read
Date, Last Raw Color Impressions, Last Billed Page Count Read Date, Last Billed Page Count, Last Raw Page Count Read Date, Last Raw Page Count.
So if I used Lookup like you suggest, it would only return the Black Impressions, since that's the first read typically stored for the device. How do I then get the Color Impressions and the Page Count? I can use LookupSet, but then how do I break the data
out? How do I lay that data onto the table?

Similar Messages

  • I am trying to update my iphone 3GS software but itunes just says that this is the current version of itunes, it does not see the phone update - anyone know how to get the phone updated?

    I am trying to update my iphone 3GS software but itunes just says that this is the current version of itunes, it does not see the phone update - anyone know how to get the phone updated?

    Mike
    I have done that and it is through pressing that update, which tells me that there is anew version of iphone software, that the prompt comes telling me that this is the current itunes?

  • Am trying to install CS6 on my new MacBook Pro. Downloaded installer from web. Ran installer, got a dialog asking me to "Please close these applications to continue:..." There were two items on the list: Safari

    "Please close these applications to continue:..." There were two items on the list: Safari & SafariNotificati (sic). I closed Safari, no problem. But could not find SafariNotifications.
    What I have done so far:
    Opened "Force Quit" and the only applications listed as open now are "Finder" and "Adobe Application Manager".
    Pressed "Continue" on the "Please close..." dialoge
    Still asks me to close SafariNotificati
    Opened Safari
    Opened Safari Preferences > Notifications Tab
    There are no notifications listed. The list is blank.
    Closed Safari again.
    Checked Force Quit again (once again the only applications listed are "Finder" and "Adobe Application Manager"
    Once again if I try to move on with the install by clicking on the "Continue" button Adobe asks me to close SafariNotificati
    What should I do now?
    My System Info
    MackBook Pro (Retina, 15-inch, Mid 2014)
    OS X Yosemite
    Ver 10.10.1

    use your activity monitor to find running processes.

  • To stop Running the Report when we dont find data in the table

    I am running a 6i report and this report fetches data from custom table.
    I need to check whether data exists in the custom table in the After parameter form and if doesnt return any data then i need to Stop the report execution and write a message without raising any exceptions or errors
    note: we tried with srw.program_abort ---- it stops the report but it returns an exception
    Thanks

    Here the tricky is
    if we don't have last month data we should not go the data model. The data model query will run regardless the previous month data.
    we are trying to find the previous month data in after parameter form. if it is not there we want to stop the report there itself it should not go to layouut or data model.
    how to achive this one?
    we try to terminate the report through program_abort but it is raising an exception

  • I'm trying to find an easier way to import my music to iTunes. Even the most basic music player can scan your computer and import found music into your library. I don't want to move my MP3s into the iTunes folder, I don't want iTunes doing any conversion.

    I'm trying to find an easy way to import my MP3 collection into iTunes without moving, copying or changing it.
    I can't believe that iTunes doesn't have this feature, as even the most basic music players always have this.
    I only use iTunes to sync my iPod, as I like Media Monkey to play my MP3s.
    I have 137GB of MP3s, mainly from my ripping my CDs, LPs and downloading from Amazon. I've only purchased a handful of songs from iTunes,
    Any ideas on how to do this easily?

    DAReese13 wrote:
    I can't believe that iTunes doesn't have this feature, as even the most basic music players always have this.
    It does have that feature. Why would you assume that it doesn't?
    DAReese13 wrote:
    I'm trying to find an easy way to import my MP3 collection into iTunes without moving, copying or changing it.
    Okay, no problem.
    If the top bar menu is not displayed in top left of your iTunes Library, use the CTRL+B keys to turn it on:
    On that menu, use File/Add Folder to Library and navigate to the folder you wish to add:
    If you wish to add just one song, notice the File/Add File to Library command on that menu as well.
    Alternatively, you can drag-and-drop from the file's location into your iTunes Library.
    That's all there is to it.
    By the way, it is possible to have Amazon MP3s downloaded to your computer and then automatically added to the iTunes Library by the Amazon downloader. I do it all the time.
    Message was edited by: the fiend

  • IR Report based off of page item value

    Hey all,
    I want to create an IRR region and have the report update based off of a a page item.
    The page item will be a drop down of the tables I want to show, so something like:
    Select * from '||v('P1_TABLES')
    This will work with the normal report but not with the IRR. Is the syntax incorrect?
    Help is appreciated!
    Edited by: Ben C on Feb 23, 2012 6:42 AM

    Zooid,
    but always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always always
    use bind variables !!!!
    Regards,
    Richard
    blog: http://blog.warp11.nl
    twitter: @rhjmartens
    If this question is answered, please mark the thread as closed and assign points where earned..

  • How do I add a current date to a form field so that it will give me the current date each time it is opened?

    I have adobe 9 pro. I am currently adding fields to a document and would like my date field to display the current date when the document is opened so that the user does not have to enter the date each time. How do I do that?

    Have you searched for this issue. It has been answered many times.
    Example Acrobat JavaScripts
    Scroll down to the . Insert Today's Date into Form Field section.

  • I have a new Macbook Pro. All data from prior Mac was migrated to new Mac. If I run Time Machine and "inherit" the old backups will TM take up where I left off, or delete and overwrite the current data?

    I have a new Macbook Pro. All data from prior Mac was migrated to the new Mac. I want to continue Time Machine on the new Mac and retain the history. An option is to "inherit" the old Time Machine. I want to make sure this does not errase the current data, but creates a current backup.

    Please visit Pondini's Time Machine FAQ for help with all things Time Machine.

  • Crystal Report error trying to retrieve data from a user table

    Hi,
    I'm making crystal report application with VS 2005 and I need to retrieve data form a user table. I'm using Pull method, I configure the connection and parameters by code.
    I think that the problem could be the @ that is used to identify these tables. Please, if some body had this problem before and have a solution, please let me know asap.
    Thanks

    Hi Andrea,
    I had the same problem today. I upgraded from Crystal Version 8 to 11 and the problem was solved. Maybe it is too late for you, but I wanted to post the solution if anybody else has the same problem.
    Regards
    Guillermo

  • Script Error report when trying to "Find Album Info" for music in Windows Media Player

    When I click on "Find Album Info" in Windows Media Player, it finds the correct media info. But when I click "Finish" after verifying everything is correct, it says "An error has occurred on this script page" and asks if I want to continue. I click
    yes, it goes back to the last page of finding album info, I again click "Finish" to find the same "Script error" page?

    Sir, that means the Windows Firewall Blocked the Script So try these steps hope it works for you :
    1.) - Open the "Start Menu".
    2.) - Go to the "Control Panel".
    3.) - Double click "Security Center".
    4.) - Click "Windows Firewall" in the top left.
    5.) - Click "Change settings".
    6.) - Click "Continue".
    7.) - Click the "Exceptions" tab.
    8.) - Scroll down and check all of the "Windows Media Player" options.
    Regards,
    MCP | MCTS | MCITP

  • Trying to find a way to add multiple google acounts to e printer through the cloud. c310a Photosmart

    My wife and I have 2 separate Google Chrome cr48 laptops. In order to print we have to print through google cloud which is why I purchased this c310a. After registering her account to the printer, I try to register mine and get an error saying already registered to another acount. I would hope this printer can handle more than one google cloud account, because it would increase the practicality for buisnesses.

    Hi timshep. If you have already 'shared' your printer in Google Cloud Print, and not getting the results you are looking for, maybe I misread your question.
    Let me clarify. Google Cloud Print is only set up one time. After that, once the printer is shared by that 'master' Google' account with all of the other 'Google Accounts' that you want to be able to cloud print from will simply be able to access it, without adding the printer the same way the Master account set it up.
    Now if I am way off base on what you are doing, here are some other questions that come to mind.
    Are you trying to have multiple Google "Cloud" accounts listed in the HP Eprint App under the 'Cloud' option?
    Or perhaps you specifically talking about Google CloudPrint App?
    8. How do I use the Google Cloud Print app for Android? (Talks about multiple accounts)
    https://support.google.com/cloudprint/?hl=en#3153824
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • When trying to export data from a program we use, it does not automatically recognize the file format as .xml. Does anyone know what I can do to fix this problem?

    I have tried to uninstall verion 3.6 and reinstall. Also, I re-imaged the workstation, but it still does not work. The OS is Windows 7 32-bit. This same process works automatically on an XP workstation. In fact, the machine I re-imaged was an XP box, but it did not work on this particular machine. Hence, the reason for the new image.

    I am exporting the file from TxEIS (in the Firefox web browser) and it does not download properly. Acccording to Firefox documentation, it is supposed to automatically recognize the file extension. I have not experienced this on any other machine within our environment. Other users are performing this same process with no problems. The browers settings are exactly the same as the machines that are working right.

  • When I am on my credit union website and I am trying to find out if a check has cleared I'm asked to enter the check number in the proper format. I checked with the credit union and they said a four digit number is correct.

    This question has not been asked before..

    So are you saying that your Four Digit number code is Authenticated and it still is not being processed ?? And it keeps asking you to enter the code again and again??
    -> Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    -> Delete cookies for a single site ---- Delete calcoastcu.org Cookies
    * https://support.mozilla.com/en-US/kb/Deleting%20cookies#w_delete-cookies-for-a-single-site
    -> click '''Firefox''' button and click '''Options''' -> Privacy -> History section -> '''Firefox will: select "Use Custom Settings for History"''' -> REMOVE Checkmark from '''Permanent Private Browsing mode''' -> place Checkmarks on:
    1) Remember my Browsing History 2) Remember Download History 3) Remember Search and Form History 4) Accept Cookies from sites -> click Exceptions... button -> type the addresses of the websites from which you want to Allow Cookies to be stored e.g. '''calcoastcu.org''' etc. -> click '''Allow''' 4a) Accept Third-party Cookies -> '''Keep Until : select They Expire'''
    -> REMOVE CHECKMARK from CLEAR HISTORY WHEN FIREFOX CLOSES
    -> Click OK on Options window -> Restart Firefox
    Check and tell if its working.
    -> When you use '''Clear Recent History''' feature make sure NOT to select '''Cookies, Forms and Search History, Active Logins, Site Preferences'''
    * https://support.mozilla.com/en-US/kb/Clear%20Recent%20History#w_what-things-are-included-in-my-history
    -> If you use Privacy Cleanup softwares like CCleaner, DON'T SELECT FIREFOX IN ITS SETTINGS. These softwares can be responsible for Deleting your Firefox Settings.

  • I'm trying to find a app that will download video off the web like realplayer or orbit

    Does anyone know if its a App that will download video's off the web like realplayer or Orbit?

    Never heard of Orbit.  As far as I know RealPlayer streams but doesn't download video (and audio).  So are you looking for another streaming app or one that actually downloads the video file?  And what kind of video?  For example, you can download flash video from sites like youtube with many flash video downloads.  There are many youtube flash downloaders.  Just search macupdate.com for them.  FWIW, a somewhat more general flash downloader is Jaksta.  Use the macupdate link I provide to Jaksta and look at near the bottom of the page for related apps.

  • Data Sets - Is there a way to put two fields in the same row?

    I am working on my first Spry Data Set (in Dreamweaver CS4) which, if I can get it figured out, will eventually be used as a calendar on a client's web site. You can see the beginning of the project here:
    http://www.rieradesignco.com/calendarlist_spry.html
    My question is, can I put two or more fields on one row? Specifically, I would like the part that looks like this...
    3
    [WED]
    Fusion
    ... to look like this:
    3   [WED]   Fusion
    I tried simply moving the fields (in Design View) so that they looked like they would be in the same row, but as you can see, that didn't do the trick. (You can see what I did here, in the highlighted part of the screenshot:  http://www.rieradesignco.com/spryquestion.jpg). I also tried nesting a table within the table on my html data document that contained the three fields I needed - it worked okay, but that just makes the table more difficult to work with. I don't want to simply type the three items into one field, because it will be a long list and they all need to line up perfectly.
    Is there another way to do it?

    Change the following line to include the red coloured parts
    <div class="MasterColumn" spry:repeat="ds4" spry:setrow="ds4" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">
      <span>{Dsp_#}</span><span>{Dsp_WkDay}</span><span>{Dsp_Event}</span>
    </div>
    The add the following style rule to your document:
    .MasterColumn span {
        display: inline-block;
    I hope this helps.
    Ben

Maybe you are looking for

  • Payment voucher to be transporter

    Hi.. I am preparing things for some taxtile Industry. My scenerio is as follows : Whenever we get Gray to our General Warehouse from where we send it to client's Dying Factory. When we issue challan for it, we  are supposed to gererate Payment Vouche

  • If VL are there to that particular VO,Is it necessary to extend the view li

    Hi Folks if VL are there to that particular VO,Is it necessary to extend the view links also while extending VO? appriciate any pointers Regards Harry

  • EUL export and import

    Scenario: Installation #1: Infrastructure Repository Database installed along with Oracle App Server etc. The EUL resides on the Repository Database (let's say under schema eul1). The Application Data (let's say in schema - app1) for reporting also r

  • Azure Diagnostics - WADLogs Table not created

    I am trying to log the information whenever user perform some operations in a WebRole in cloud environment. In emulator it will write the info in output window, but in azue portal I cant see the info anywhere. I have enabled the azure diagnostics and

  • Access data file inside a package

    Hi, I have data files (text type) inside a folder of the same package where the classes are. How can I access those data file? String infile = getClass().getPackage().getName()+"/data/T1901c.txt"; // shows error as getClass().. returns URL InputStrea