开发者

Change font color for a column when the value changes

if i have a column where the values are repeated across rows and i want to change the co开发者_运维百科lor of the font when the value changes, how do i do this?


You can define an expression for the font color. In Visual Studio/Business Intellligence:

  1. Select the cell you want to alter the colour of the font in
  2. Navigate to the Color listing in the Properties, and select it
  3. Click the Dropdown arrow that appears next to the value it's current set to (typically Black)
  4. Under the Web tab, select Expression (top of the list) - the Edit Expression dialog will appear
  5. You can use the IIF in combination with the PREVIOUS function to compare values. IE:

    =IIF(Fields!Registrations.Value <> Previous(Fields!Registrations.Value), 
          "Black", 
          "Blue")
    

    If true, this expression will colour the font black -- if false, blue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜