web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

SSRS report to highlight the field value

(0) ShareShare
ReportReport
Posted on by 1,260

Hi all,

I want to highlight the field value of the unit is equal to 'g' what expression I can use to perform this actions?

Highlight the unit if equal to 'g', but for some reason I am not receiving the highlights. I am using following expression:

=IIF(Fields!Unit.Value = "g", “Yellow”, Nothing)


*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Zain Bokhari Profile Picture
    3,208 Moderator on at

    Maybe try using Like instead of = operator.

    Or deploy the report again. Maybe your changes have not been deployed. Clear the caches and try again.

    The expression you wrote seems correct.

    By the way, where are you using the above expression exactly? 

  • Daljit Kaur Rahsi Profile Picture
    1,260 on at

    Okay that did not work, I wanted to highlight the "g" if unit is "g". But it instead wrote it as "Yellow". My requirement is to highlight "g" if unit id is "g"

    Highlight.JPG

  • Sohaib Cheema Profile Picture
    49,664 Super User 2026 Season 1 on at

    give a try to correct expression on FontWeight property of textbox

    =iif(Fields!Unit.Value = "g","Bold", "Normal")

  • Suggested answer
    Zain Bokhari Profile Picture
    3,208 Moderator on at

    Your expression is correct but you are putting it in the wrong place. Go to the report design right click on the unit field box.

    hilight.PNGclick Text Box Properties

    Then Click Fill and then click the small expression button in front of the "No Color" button

    hilight.PNG

    hilight1.PNGPut your condition expression here and change write "No color" instead of "Nothing" in the else part of your expression.

  • Daljit Kaur Rahsi Profile Picture
    1,260 on at

    My bad, that is working - thanks for the help :)

  • Zain Bokhari Profile Picture
    3,208 Moderator on at

    Great :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 28

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans