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

Notifications

Announcements

No record found.

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,443 User Group Leader 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Priya_K Profile Picture

Priya_K 4

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans