SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Unable to create a working indicator


Unable to create a working indicator

Author
Message
dbman
dbman
SSChasing Mays
SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)

Group: General Forum Members
Points: 649 Visits: 1537
I am trying to create an (Shape) indicator for a SSRS report whereby the indicator will turn red if there is a call
from a manager and then stay Green if there is no call.


I have created a query to be used on the report:


SELECT COUNT(*) AS Calls
FROM CALL INNER JOIN
Z_UserAlert ON CALL.CALL_USERNAME = Z_UserAlert.UserName
WHERE (CALL.CALL_STATUS = 'Open')


I have dragged an indicator on to the report. On the Indicator states I have set the color red to Start at 1 and End at 100.

The indicator Green starts at 0 and ends at 0.


On the value i have created an expression as follows:


= IIF(Sum(Fields!Calls.Value) >= 1, "Red", IIF(Sum(Fields!Calls.Value) < 1, "Green", "Green"))


I have ran my report but what is happnening is that the indicator is not turning to any color. The box is just clear.

Does anyone know where I am going wrong?
calvo
calvo
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3212 Visits: 4018
dbman (3/28/2013)
I am trying to create an (Shape) indicator for a SSRS report whereby the indicator will turn red if there is a call
from a manager and then stay Green if there is no call.


I have created a query to be used on the report:


SELECT COUNT(*) AS Calls
FROM CALL INNER JOIN
Z_UserAlert ON CALL.CALL_USERNAME = Z_UserAlert.UserName
WHERE (CALL.CALL_STATUS = 'Open')


I have dragged an indicator on to the report. On the Indicator states I have set the color red to Start at 1 and End at 100.

The indicator Green starts at 0 and ends at 0.


On the value i have created an expression as follows:


= IIF(Sum(Fields!Calls.Value) >= 1, "Red", IIF(Sum(Fields!Calls.Value) < 1, "Green", "Green"))


I have ran my report but what is happnening is that the indicator is not turning to any color. The box is just clear.

Does anyone know where I am going wrong?


Indicators are tricky for me too. Looking at your code I can't tell you exactly what is happening but i'll throw out some ideas for you.
This issue might be with the SUM() function. Perhaps there's a NULL in there which screws up the indicator (NULL != 0).

= IIF(Sum(Fields!Calls.Value) >= 1,"Red","Green")


or

=Switch(
Sum(Fields!Calls.Value) >= 1,"Red",
Sum(Fields!Calls.Value) <1 "Green")



______________________________________________________________________________________________
Forum posting etiquette. Get your answers faster.
dbman
dbman
SSChasing Mays
SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)

Group: General Forum Members
Points: 649 Visits: 1537
Hi
Thanks for your reply. I have tried both expressions, but the box is still staying empty when I attempt to view the indicator.
I have ran my query in SSMS and its returning the value 4. So the color should be turning Red.
dbman
dbman
SSChasing Mays
SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)

Group: General Forum Members
Points: 649 Visits: 1537
Hi
Thanks for your reply. I have tried both expressions, but the box is still staying empty when I attempt to view the indicator.
I have ran my query in SSMS and its returning the value 4. So the color should be turning Red.
raj87
raj87
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 64
check this link will help you

http://www.codeproject.com/Articles/195017/SSRS-Series-Part-II-Working-with-Subreports-DrillD#13
THE-LIP
THE-LIP
SSC-Enthusiastic
SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)

Group: General Forum Members
Points: 107 Visits: 30
Change the Measurement unit to "Numeric" in value and state and see the result.
dbman
dbman
SSChasing Mays
SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)

Group: General Forum Members
Points: 649 Visits: 1537
Hi The measurement was on Numeric in the first place. Still not working.
THE-LIP
THE-LIP
SSC-Enthusiastic
SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)

Group: General Forum Members
Points: 107 Visits: 30
I think u r following some wrong process..

Below is an example
FIRSTNAME BIRTHPLACE VALUE
ERIK LONDON 0
ERIK LONDON 3
HARRY EDINBURGH 2
HARRY EDINBURGH 5

1. Add a indicator in the table and go to indicator properties.
2. Simply Add the column name like Sum(Fields!Calls.Value).
3. Select Numeric as Measurement Unit.
4. Then in the indicator states just give the start and end value in the respective
THE-LIP
THE-LIP
SSC-Enthusiastic
SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)SSC-Enthusiastic (107 reputation)

Group: General Forum Members
Points: 107 Visits: 30
you can chck the attachment
Attachments
solution.JPG (38 views, 44.00 KB)
dbman
dbman
SSChasing Mays
SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)SSChasing Mays (649 reputation)

Group: General Forum Members
Points: 649 Visits: 1537
Thanks for your help. Problem is solved.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search