Skip to main content

KPI in SSRS 2005, 2008 and 2008 R2

KPI - Key Performance Indicator is used as a measure of performance (success/failure) of a particular activity. Sometime it is very useful to define a new strategy for the organization.

Let's talk about KPI in SSRS 2008 R2, they have introduced new item in toolbox called 'Indicator'. So we directly drag and drop that indicator to define KPIs in 2008 R2. There are many choices available for KPI presentation like Directional, Symbols, Shapes, Ratings in SSRS 2008 R2. 





But in SSRS 2005, 2008 version, There are two ways to define KPIs in the reports 1) by adding images and image value expression and 2) by adding a new column with background color expression.

1) Ex. you want to define KPIs for sales amount > 200 'Green', <= 200 and >= 100 'Yellow', <100 'Red'
Simply add a new column and go to the background color property -->add expression there

Method1: (Using IIF statement)
=iif(fields!salesamt.value > 200, "Green", iif(fields!salesamt.value >= 100 and fields!salesamt.value <=200, "Yellow", "Red"))

Mehotd2: (Using SWITCH statement)
=switch(fields!salesamt.value > 200, "Green", (fields!salesamt.value >= 100 and fields!salesamt.value <=200), "Yellow", true, "Red"))


















2) You can also do this by adding images (right click on the image (left in report data) --> add image and select circle, square, arrow etc (red, green, yellow) images and add there. 

Next drag image to the column and go to the image value property --> select the image source (Embedded) --> add expression




Method1:
=iif(fields!salesamt.value > 200, "BlueCircle", iif(fields!salesamt.value >= 100 and fields!salesamt.value <=200, "YellowCircle", "RedCircle"))


Method2:
=switch(fields!salesamt.value > 200, "BlueCircle", (fields!salesamt.value >= 100 and fields!salesamt.value <=200), "YellowCircle", true, "RedCircle"))


(Download Sample Images):   

Thanks

Comments

Post a Comment

Popular posts from this blog

_x003C_none_x003E_ FlatFile Error in SSIS

If you are receiving this error in your output file, It is because of the value in the text qualifier property (Text Qualifier = <none>).  When you export the data in a file, you might see the _x003C_none_x003E_ (x003C = "<" and none and x003E = ">") with your original field value. • Do not open the connection manager editor once you finalize everything and just clear out the <none> value  from the property window on the right side (Do not open show editor) and save it. You’re done. • Other way around, You can also define the Expression value for the text qualifier and provide (“”) as a value in the expression. Go to the property --> Expression --> Select the Text qualifier from the drop down list --> provide the expression value (“”)

ALL as a parameter value in ssrs oracle sql

In some cases as per the requirements you will need to add 'ALL' as an independent parameter value (not a multivalue parameter) 1) Create a new dataset to populate parameter values Ex: select distinct city from table1 where city is not null        union       select 'ALL' as city from dual       order by 1 2) Modify your main dataset query Ex: where (city = :city or 'ALL' = :city) Thank you

Keep Column Headers Visible while scrolling in SSRS 2008

When you try to set up Tablix property for keep header visible while scrolling, you will see that it is not working in SSRS 2008 or SSRS 2008 R2. You need to take some extra steps to set up this property 1)       Uncheck keep header visible while scrolling tab under tablix property                            2)       Go to Grouping and Click on the right side arrow (Advanced Mode) 3)       Select the first Static Property in Row Groups (In your report first row should display column headers) 4)       Make Fixed Data = True                  5)       Run the report and you will get column headers visible while scrolling Hope it helps! Thanks