Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Variables 1

Status
Not open for further replies.

Tatertot45

Technical User
Jun 11, 2007
161
I'm having a hard time recalling how to accomplish what i need. I'm using CR XI, with a SQL Datawarehouse. I have invoice data,in the form of Line items. There is sometimes one item that is given a 100% discount. I want to isolate that Item and display it in the Group Header. I'm grouping based on Order number of the invoice. I'm summing the item prices, displaying some other data, and i want to display the item description of the item given a 100% discount. i thought about using a string Variable, but can't get it to work. Basically, if the Inv.item-discount equals 100% then display the Item Description, otherwise display NA, or leave blank.



Any help would be apprciated.
 
Create a formula like this:

if {invoice.discount} = 100 then
{item.description}

Place this in the detail section and then insert a maximum on it at the group level and drag the result into the group header.

-LB

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top