Solved

IIF Expression based on Parameter

Posted on 2008-10-29
5
591 Views
Last Modified: 2012-08-13
I need an expression that show a certain field based on a parameter input

--
=iif(Parameters!NetorGross.Value = "Net",Fields!EndbalanceNet.Value,
iif(Parameters!!NetorGross.Value = "Gross",Fields!EndBalanceGross.Value))
--
It keeps on blowing up
thx
0
Comment
Question by:fundsf
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
PedroCGD earned 250 total points
ID: 22843915
=iif(Parameters!NetorGross.Value = "Net",Fields!EndbalanceNet.Value,
iif(Parameters!!NetorGross.Value = "Gross",Fields!EndBalanceGross.Value,NEEDTHISVALUE))

You need to add a value in NEEDTHISVALUE Fixed it?
Regards
0
 
LVL 38

Assisted Solution

by:Jim P.
Jim P. earned 250 total points
ID: 22844056
Are you saying you want someone to type in "net" or "gross" in a pop-up box?

Try this:
=iif(Trim([Enter Net or Gross])  = "Net",Fields!EndbalanceNet.Value,

,Fields!EndBalanceGross.Value)

Open in new window

0
 

Author Closing Comment

by:fundsf
ID: 31511447
Thx,
I took pieces of both of your answers and it worked.

=iif(Parameters!NetorGross.Value = "Net",Fields!EndbalanceNet.Value,
Fields!EndBalanceGross.Value)
0
 
LVL 38

Expert Comment

by:Jim P.
ID: 22844565
Glad to be of assistance. May all your days get brighter and brighter.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now