ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Conditional Formatting 
Ram Kedem
Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com 
Conditional Formatting In Reports 
?Using Expressions to create Conditions 
?Changing Colors using IF 
?Using Switch to create color bands 
?Creating alternating row colors 
?Formatting text using expressions
Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com 
Using Expressions to create Conditions 
Used Query : 
SELECTproductId, ProductName, unitPrice, unitsInStock, UnitsOnOrder 
FROMNorthwind.dbo.products
Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com 
Using Expressions to create Conditions (IF)
Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com 
Using Expressions to create Conditions (IF) 
?=IIf(Fields!unitsInStock.Value<Fields!UnitsOnOrder.Value, "Red", "Black")
Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com 
Using Expressions to create Conditions (SWITCH) 
?=Switch(Fields!unitPrice.Value<10, "LightGreen" , Fields!unitPrice.Value<20, "Turquoise", Fields!unitPrice.Value< 30 , "Teal" , TRUE , "MidnightBlue")
Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com 
Alternating Row Colors 
?=IIf(RowNumber(NOTHING) MOD 2 = 0, "Plum" , "White")
Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com 
Formatting Text Using Conditions 
=IIf(Fields!unitPrice.Value>50, "Bold","Normal")

More Related Content

SSRS Conditional Formatting

  • 2. Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com Conditional Formatting In Reports ?Using Expressions to create Conditions ?Changing Colors using IF ?Using Switch to create color bands ?Creating alternating row colors ?Formatting text using expressions
  • 3. Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com Using Expressions to create Conditions Used Query : SELECTproductId, ProductName, unitPrice, unitsInStock, UnitsOnOrder FROMNorthwind.dbo.products
  • 4. Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com Using Expressions to create Conditions (IF)
  • 5. Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com Using Expressions to create Conditions (IF) ?=IIf(Fields!unitsInStock.Value<Fields!UnitsOnOrder.Value, "Red", "Black")
  • 6. Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com Using Expressions to create Conditions (SWITCH) ?=Switch(Fields!unitPrice.Value<10, "LightGreen" , Fields!unitPrice.Value<20, "Turquoise", Fields!unitPrice.Value< 30 , "Teal" , TRUE , "MidnightBlue")
  • 7. Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com Alternating Row Colors ?=IIf(RowNumber(NOTHING) MOD 2 = 0, "Plum" , "White")
  • 8. Copyright 2014 ? Ram Kedem. All rights reserved. Not to be reproduced without written consent. ramkedem.com Formatting Text Using Conditions =IIf(Fields!unitPrice.Value>50, "Bold","Normal")