70-466 · Question #1
You are designing a SQL Server Reporting Services (SSRS) report to display product names and their year-to-date (YTD) sales quantity. YTD sales quantity values are classified in three bands: High…
The correct answer is E. Use an expression for the Color property of the text box. To conditionally color text in an SSRS report, you must target the Color property of the text box using a conditional expression.
Question
Options
- AUse an expression for the TextDecoration property of the text box.
- BUse an expression for the Style property of the text box.
- CAdd an indicator to the table.
- DUse an expression for the Font property of the text box.
- EUse an expression for the Color property of the text box.
How the community answered
(28 responses)- B4% (1)
- D7% (2)
- E89% (25)
Why each option
To conditionally color text in an SSRS report, you must target the Color property of the text box using a conditional expression.
The TextDecoration property controls styling such as underline or strikethrough, not the color of text.
Style is not a directly addressable color-controlling property on an SSRS text box; it refers to CSS-level style sheets in HTML rendering, not the font color.
Indicators are graphical gauge or icon elements used to represent data states visually, not a mechanism for changing text color in a table cell.
The Font property group controls font family, size, and weight, but color is a separate property outside the Font group.
The Color property of a text box in SSRS directly controls the foreground text color displayed in the rendered report. By assigning an expression such as =IIF(Fields!YTDSalesQuantity.Value > 1000, 'Red', IIF(Fields!YTDSalesQuantity.Value > 500, 'Yellow', 'Blue')), you can dynamically map each sales band to the appropriate color at runtime.
Concept tested: SSRS text box Color property conditional expressions
Source: https://learn.microsoft.com/en-us/sql/reporting-services/report-design/expression-examples-report-builder-and-ssrs
Topics
Community Discussion
No community discussion yet for this question.