Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

using dataset values to set background color

Avatar of Junior_Developer
Junior_Developer asked on
DB Reporting Tools
3 Comments1 Solution355 ViewsLast Modified:
i have 2 datasets.
one gives me the product information like name, price, profit etc...
other gives me MinValue and MaxValue.

i have displayed name,Price and profit on the report.
eg.

name price profit %
A        10     15
B        80      50
C        12     60
D        40     90
------------------
total    142   70
------------------
now i would like to set the backgroud color of profit % (70) in the total field
currently i have switch statement in profit% column or total. here it is but i have hard coded the minValue and maxValue.
this minValue and Maxvalue i have pulled in the other dataset called (minmaxdataset) for eg. min has the 60 max has 80

here is my switch statement.
=Switch (
      profit >= 80,"LightGreen",
      prifit < 80 and price >= 60,"YELLOW",
      profit <= 60 , "Red"
)
this works fine but in place of 80 and 60 i would like to use minvalue and maxvalue which is in the other dataset.
HOW CAN I DO THIS.

THANKS FOR YOUR HELP IN ADVANCE
ASKER CERTIFIED SOLUTION
Avatar of Chris McGuigan
Chris McGuiganFlag of Canada imageBI & Database Architect & Developer, Sitecore Developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answers