How to figure out if the bottom 2 lines in each group has the same value in specific columns?

Hi, I need help to finish my project ASAP. My task is to figure out defects in this Loan_Status_Tbl. 
When Current_Principal= 0, Loan_status should be populated from previous records. For example, when Loan_Nbr 00001's current_Principal=0, it's loan_status is not populated from it's 2010-12-30 record, and 00002 is good. I want to know which items are not
good, and report the results to engineer to modify the wrong record in DW. 
ID      LOAN_NBR    CURRENT_PRINCIPAL                           LOAD_DT              LOAN_STATUS
1        00001           1000                            2010-12-5     APPROVED
2        00001           800                              2010-12-30   APPROVED
3        00001           0                                  2011-3-1        NULL        
4        00002           500                              2012-5-1        APPROVED
5        00002           0                                  2012-6-12      APPROVED

Hi,
If I understand correctly, you want to highlight the records that have incorrect Loan_status values.
To achieve this requirement, we can create a table with the table data, then add a column with correct Loan_status value in a report. Compare the Loan_status column and new column to find out the incorrect values, then highlight it. The following detail
steps are for your references:
Create a report in a SQL Server Reporting Services Project.
Create a dataset with the sample data.
Drag a Table with the dataset to design surface.
Add a group grouped by LOAN_NBR, then insert all the fields to the table.
Right-click the LOAN_STATUS column to add a new column with Right option, then insert the expression as below:
=iif(Fields!CURRENT_PRINCIPAL.Value="0",previous(Fields!LOAN_STATUS.Value),Fields!LOAN_STATUS.Value)
Click second row to change its BackgroundColor property as below, then the incorrect Loan_status value row will be highlighted:
=iif(Fields!LOAN_STATUS.Value=iif(Fields!CURRENT_PRINCIPAL.Value="0",previous(Fields!LOAN_STATUS.Value),Fields!LOAN_STATUS.Value),"Transparent","Red")
The following screenshot is for your reference:
Reference:
Create a Basic Table Report (SSRS Tutorial)
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support

Similar Messages

  • How to figure out the properties of field/object ??

    Hello
    I have field (say, its name is field_1) in my_form and  i am coloring yellow by using below code of initialization event:
    this.ui.oneOfChild.border.fill.color.value = "255,255,191"; (Actually, just for differentiating / tracing back purpose here  am assigning this yellow color to this field, you can suggest me any thing else that marks / tags this field (i can not populate a value, bcz its visible to user), so that in the  CHANGE event of this field, again i want to check/get/know that whether this field is tagged/marked or not)
    fine. But, because of some/below reason, i need to find out its color by using JavaScript, pls. let me know how to figure out its color is as yellow by using JavaScrit?
    Reason: If field_1's color is YELLOW (or you suggested any tag/mark as said in the above in red text), then i have to make HIDE the field_2
    Field_0's position is extreme left, Field_1's  position is middle and the Field_2's position is exterme right of the page.
    I guess, i hv only one option of finding out color, hence am looking forward for JavaScript to find out the color of a field in question
    (OR)
    Also, pls. let me know the JavaScript that How can i make HIDE a check box for that COMLETE session (i mean, starting from launching the form in the browser until he closes the window/browser/tab/form), i guess, this idea also workes for my requirement, ( i want to put this code in the docReady event) .....no matter/what ever code is existing there in any event of that field level
    Thank you

    Hi,
    If you want to give a visual indicator to the user, then colouring the field yellow is probably a good approach.
    However if you just want to keep track on the field, then you could test the field's value (.rawValue) and take appropriate action. In addition you can also attach a variable to an object using the <desc> element. It is a bit involved but you can find an example here: http://assure.ly/x1QObn.
    Hope that helps,
    Niall

  • I just moved my safari off the bottom line of icons on my mac. where do I find now, or how do i get it back?

    i just moved my safari off the bottom line of icons on my mac. where do I find now, or how do i get it back?

    Simply go back into your applications folder and find the icon for Safari. Click and drag the icon back into the menu bar. You can choose where to place it by moving it to the perfered place in the menu bar and unclick to set.

  • How to figure out server has capacity to install OEM 10 Grid control

    How to figure out server has capacity to install OEM 10 Grid control
    Hi Experts
    I have HP_UX 11.11 server which has 1 instance on it with version 10.2.0.1.0.
    Now I would like to install Grid control with a separate instance for repository.
    I was told I would need 2 GB Ram for OMS and 2 GB Ram for instance.
    Now how do I figure out if my server has enough resources from Ram perspective
    Following is output from top and vmstat
    1. for top it says 3045556K free , now is this free memory virtual(real +swap) or real?
    2. as per top I only have free 3GB(3045556K) , so does that mean I can not have OMS & repository on
    this server ?
    3. In vmstat I see free memory as 762335
    in man it says free - Size of the free list
    what does this mean, how much is my free meemory ?
    4. For OMS I read - It is a J2EE application that is installed and deployed using Oracle
    Application Server
    Now when I look at top I see these processes
    0 ? 26521 oasadm 152 20 1517M 1141M run 3:49 2.53 2.52 java
    0 ? 3377 oasadm 152 20 1657M 1276M run 54:49 1.88 1.88 java
    Does oasadm user means Oracle application server ? If yes does it mean I will not
    need 2GB for OMS ?
    cov6817:plmbomdv $ vmstat 2 5
    procs memory page faults cpu
    r b w avm free re at pi po fr de sr in sy cs us sy id
    1 0 0 3348627 762335 69 11 0 0 0 0 0 1014 4916 671 12 1 87
    1 0 0 3348627 762284 17 0 0 0 0 0 0 1040 10514 886 1 0 99
    1 0 0 3330668 762284 10 0 0 0 0 0 0 1031 7820 872 0 0 100
    1 0 0 3330668 762284 9 0 0 0 0 0 0 1033 6173 873 0 0 100
    1 0 0 3330668 762284 5 0 0 0 0 0 0 1029 5468 891 1 0 98
    cov6817:plmbomdv $ top
    System: cov6817 Wed Jul 18 08:48:43 2007
    Load averages: 0.02, 0.04, 0.03
    267 processes: 215 sleeping, 51 running, 1 zombie
    Cpu states:
    CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
    0 0.03 0.0% 0.0% 0.2% 99.8% 0.0% 0.0% 0.0% 0.0%
    1 0.03 0.6% 0.0% 0.4% 99.0% 0.0% 0.0% 0.0% 0.0%
    2 0.02 0.6% 0.0% 0.2% 99.2% 0.0% 0.0% 0.0% 0.0%
    3 0.01 0.0% 0.0% 0.0% 100.0% 0.0% 0.0% 0.0% 0.0%
    avg 0.02 0.4% 0.0% 0.2% 99.4% 0.0% 0.0% 0.0% 0.0%
    Memory: 8733312K (7157492K) real, 15353696K (13382776K) virtual, 3045556K free Page# 1/10
    CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
    0 ? 26521 oasadm 152 20 1517M 1141M run 3:49 2.53 2.52 java
    0 ? 3377 oasadm 152 20 1657M 1276M run 54:49 1.88 1.88 java
    Thanks a lot
    New DBA

    how much is my free meemory ?Do you have kmeminfo command installed?
    4. For OMS I read - It is a J2EE application that is
    installed and deployed using Oracle Application Server
    s oasadm user means Oracle application server ? If
    yes does it mean I will not need 2GB for OMS ?Even if that java vm is an instance of Oracle AS (OC4J), the Grid Control installs a separate instance of AS. The choice to install OMS app to any existing AS home does not exist in any version I know.
    Find out what more is running on the box and how much resources (i.e. RAM) those apps are configured with.

  • How to figure out ORA_12203:TNS unable to connect to destination?

    OS: WSK
    I have installed oracle817 and form6i in different directory in a machine
    and defined two oracle home for them. I can access sqlplus through
    OEM of oracle817, but I can not do the same thing through form6i,
    the error showed me: ORA_12203:TNS unable to connect to destination.
    But after installation, I have copied tnsname.ora of oracle817(oracle_home/network/admin) to tnsname.ora of form6i
    (oracle_home_net80/admin). The same error slao showed me when I open
    From Builder, droped the menu FILE --> Connect: system/manager/oradb,
    TNS unable to connect to destination.
    How to figure out this promble? I think maybe listener configuration
    have some promble, but I am not sure how to do that?
    COuld some give me some ideas? Thanks

    Hi shay,
    I have not fixed my problem. I defined two homes respectively:
    Oracle817: Home_name: oraHome81
    Path: D:\oracle
    Form6i: home_name: orahome6i
    path: d:\Form6i
    But I'm wondering when I opened the ORACLE folder under
    HKEY_LOCAL_MACHINE, All_Homes just show one home name:
    oraHome81 or orahome6i, deponding on which I imported later.
    So I like to ask do I need make the export/import
    registery of ORACLE floder under HKEY_LOCAL_MACHINE
    when you install oralce and form6i together?
    By the way, let me attached the TNSNAMES.ora file which
    configured by Oracle during installation:
    # TNSNAMES.ORA Network Configuration File: D:\oracle817\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORADB =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = name3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORADB)
    INST1_HTTP =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = name3)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = ORADB)
    (PRESENTATION = http://admin)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)

  • When using Windows 2007 in Vista and HP Deskjet 6620 the bottom line gets cut off

    When using Windows 2007 in Vista 32bit and HP Deskjet 6620 printer, the bottom line gets cut off.  I have searched and searched but find no fix. Please help. What I do find is HP blaming Microsoft and Microsoft blaming HP. Where is the fix??? Think of all of us frustrated users. Is there a fix out there?????  I attempted to download a new driver, assign it then attempted the patch all to no avail. I was even told try to bold the document...still no fix. Where is the patch? This is an HP issue. Please assist.
    I hope this gets addressed ASAP. In my search many have had this issue with HP. Here is one comment...and it does not look good..."I am extremely upset with this issue and spent far too long trying to work with HP support. The HP support person was hopeless. I gave up and went off on my own. I hope HP releases drivers that correct this problem rightly in the future."
    If this is not fixed or addressed I am sure it will affect the future buying of HP products from me and others. Let's see HP come out of this issue smelling like a rose. I await the fix.
    Message Edited by KimINgr on 07-13-2009 08:01 PM

    I will reply to myself....there is a fix. Thanks to someone else who had the same issue, went round and round with HP and then had this issue escalated up to get a more experienced tech who then had the print driver 990C installed to replace the driver he had selected. Me I had the 6620 which is the correct driver but had the issues so I tried the 990C driver and guess what.....it worked!!!!!!! So, HP is this your driver issue or is it Microsoft?  I say driver issue. You might want to get a patch out their for the fix.

  • I came up with a way to increase the bottom line and increase public opinion of Verizon.

    When the Verizon customer service staff read script to customers all day, they know all the details... all the small details.  The average user does not.   Some people use Verizon email for important email, and then other email accounts for less important messages.  There should be an option to pay a fee if the average user does not see any reason that Verizon would turn off email.  Other companies have email.
    Look at the ads for the Discover card in the subway.  They read - Discover IT is New, IT is Different, IT is Human.  Talk to a real person anytime you want.  It will change the way you feel about ________.
    What if Verizon changed.  What if all the staff of Verizon, knowing that their Midyear reviews are coming suggested change.  What if they could say "I came up with a multi-million dollar way to increase revenue."  I came up with a way to increase the bottom line and increase public opinion of Verizon.
    Give the customer a choice to pay $200 for a one time transfer of email.  Then Verizon is a hero and makes money too.  Multipy $200 by the number of people who had to give up internet this month and that number has to be big!  Put that message on your midyear review.  Nobody can tell where it came from.  They will only know that you are trying to think of ways to increase the bottom line.  Who knows... maybe there will be a raise in it for you!  Good luck.

    Oh yes, this is great – At last, I can see what I’m trying to do at least.  Appreciate your input so rapidly.  I jump on the link so rapidly that I failed to notice if there might be a set half this much.  I might be able to see it half this much increase like 100% instead of 200%?  Oh don’t get me wrong.  I’m not complaining, was just wondering – what if…
    Thanks,
    Sam

  • When I enter time machine (on Time Capsule) i see the stack of screen shots and the time line. However, when I roll over the mouse pointer, the time line does not activate. The cancel button does not get me out of the app: have to alt cmd esc. Ideas?

    When I enter time machine (on Time Capsule) i see the stack of screen shots and the time line. However, when I roll over the mouse pointer, the time line does not activate. The cancel button does not get me out of the app: have to alt+cmd+esc. Ideas?

    I have never seen it but then I run SL which is much more reliable than Lion..
    See
    http://pondini.org/TM/E4.html
    Check the master guru of all TM problems.

  • Taxes, Fees, and the bottom line?

    So, I'm looking at the More Everything Plan with 4GB's which shows the monthly bill for 120.00 for one line. I'm also looking at the 3GB one for 110.00 a month. I know there are extra charges, taxes, and activation fees. Does anyone have one of these two plans and wouldn't mind telling me the bottom line?
    (I'm looking at the Samsung Galaxy s5 if that helps.)

    I don't know. The billing cycle date is chosen at random. The first is always higher as you are paying for a partial billing and the full month cycle plus the activation/upgrade fee, taxes and regulatory fees.

  • An upgrade for my IPod 3rd gen  and now all my APPS close as soon as they open, except for the first page and the bottom line.

    I just downloaded the latest upgrade for my 3rd gen IPod and now most of the Apps close as soon as they open. Only the first page of Apps and the bottom line will operate. Does anyone know of a solution. I checked with common problems and I don't have other Apps open.

    If the ipod was completely drained of power, you have to leave the ipod connected to a power source (Like your PC) for up to an hour before it will have enough power to power up and be seen by windows and iTunes.
    http://docs.info.apple.com/article.html?artnum=61711

  • "how to get to the bottom of a page fast on the iPad Air"

    how to get to the bottom of a page fast on the iPad Air"

    thank you!  I am admiring my three dots and considering which cat's picture I should upload as my avatar.
    yes, the scrolling down in sections I have managed.  I thought you were saying one set of double taps would go straight to the bottom.
    here's another question for you:  on my iMac by holding the command key down I can make a link open in a new tab.  Do you know if there is a way to do that on the iPad?

  • I'm on plan mode In Adobe muse, I have my paster page at the bottom and all subsequent pages at the

    I'm on plan mode In Adobe muse, I have my paster page at the bottom and all subsequent pages at the top. I've changed my page dimensions in the master page by altering the height, however, these changes have not been made in the subsequent pages up top. How come?

    Several possible reasons:
    1) Is the master page applied to the pages?
    2) Did you increase or decrease the height of the master? The size of actual pages is the maximum of the size of the applied master page and the size that's required to contain the content that's been laid out on the page.
    3) Has the minimum height of the non-master pages ever been set? If so, it overrides the master page value. To get the normal page to again honor the minimum height set in the master page go to the individual page in the Plan view and use the context menu to select "Reset Page Properties". This will revert all the page properties to match those of the applied master.

  • My Premiere Pro CS6 is frozen. I can't force quit. The yellow line that you drag over the sequence does not accurately depict in the Program sequence window what video the yellow line is actually on.

    My Adobe Premiere CS6 is frozen I can't force quit. The yellow line that you drag over the video doesn't even show the video it should. It shows either a black screen or images from alternating other videos. How do I resolve this?

    More information needed for someone to help... please click below and provide the requested information
    -Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
    •What is your exact brand/model graphics adapter (ATI or nVidia or ???)
    •What is your exact graphics adapter driver version?
    •Have you gone to the vendor web site to check for a newer driver?
    •For Windows, do NOT rely on Windows Update to have current driver information
    •-you need to go direct to the vendor web site and check updates for yourself
    •nVidia Driver Downloads http://www.nvidia.com/Download/index.aspx?lang=en-us
    •ATI Driver Autodetect http://support.amd.com/en-us/download/auto-detect-tool
    -and a fix for at least "some" ATI crashes https://forums.adobe.com/thread/1553342
    Exactly what is INSIDE the video you are editing?
    Codec & Format information, with 2 links inside for you to read http://forums.adobe.com/thread/1270588
    Report back with the codec details of your file, use the programs below... A screen shot works well to SHOW people what you are doing
    https://forums.adobe.com/thread/1070933 for screen shot instructions
    Free programs to get file information for PC/Mac http://mediaarea.net/en/MediaInfo/Download

  • Where to find the top line on a page on the Internet at IMac? I lost it when was trying to set my ITV on my computer. Can't go to any pages, because there is no line on top of the page. Thank you.

    Hello, where to find the top line on a page on the Internet at IMac? I was trying to made some settings to my computer and now I lost the line on top of my computer , when I open a page. Thank you.

    I'm not sure which line you are refering to as the top line.
    What web page? 
    What web browsr?
    What do you expect to see on the missing line?
    How about a picture?
    How to show us a screen image.  Avoid personal identification.
    command + shift + 3   Will take entire screen.  You hear a click.
    command + shift + 4 Lets you decide what to take.  Mouse pointer changes. Move mouse to upper left corner of desire image.  Hold down left mouse key where to start image.  Drag mouse to lower left of where you want to stop image.  Release mouse.
    You will get a picture n.png file on the desktop.
    one the forum input panel you will see the camera icon.
    click on camera icon.
    another window will appear.
    Make sure you have selected the from your computer tab.
    click on Browse button
    An open file panel appears.  Select the file.
    After selection a file, I have this screen showing.
    You will have to click on Insert Image.  You may have to scroll down to see Insert Image button.

  • My computer turned on and showed a loading bar at the bottom, then that bar disappeared and the loading wheel appeared under the apple icon, what do I do?

    My computer turned on and showed a loading bar at the bottom, then that bar disappeared and the loading wheel appeared under the apple icon, what do I do?

    It is a Mac OS X.
    We still don't know your model--OSX is the operating system, not the hardware model. Please do "About this Mac" from your Apple menu to see a window like this:
    Please tell us what your computer shows for the contents of the two lines I've indicated with red arrows. The processor type will at least tell us to which of the four basic iMac families yours belongs. That's a start and can help you avoid getting advice that is not appropriate to your Mac model.

Maybe you are looking for

  • Kernel panic with 10.9.2

    My MBA crashes 3-4 times a day, esp when plugged in or our of external display. Pls help Anonymous UUID:       0C0756D4-6109-51DF-E422-80FCFDCD1353 Fri Mar 21 11:04:41 2014 panic(cpu 2 caller 0xffffff80040dbe2e): Kernel trap at 0xffffff7f85c66b91, ty

  • I want to buy an ipad in usa for a friend of mine in france. will this work

    i want to buy and i pad in usa as a gift for a friend of mine in paris, france... Will thos work there or will there be problems

  • Encore cs5 motion menus not working when build to flash

    Hello my question is this, I have created a dvd in encore cs5. I have created motion menus in AE. Everything works great when I build to DVD. However when I export to flash my animated menu is working but the buttons (play move, chapter select , extr

  • Error During Release to Accounting In VFX3

    Hi All, We are getting the following error message while release billing to accounting for billing type Cancel. Invoice (S1), Cancel of Cred Memo, Debit Memo,Invoice, Credit for Returns and Credit Memo : Reverse CO reposting document xxxxxxxx first W

  • Caught in system limbo = my order won't process

    About a week ago, I ordered a Verizon range extender for my home, where the cellular service I get is incredibly weak (1 bar or often zero bars).  I successfully ordered the unit at the Verizon store from My Verizon online account, and received a con