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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Conditional Formatting in RDLC report layout in business central.

(0) ShareShare
ReportReport
Posted on by 153

Hi Guys,

For example : I want if my price are matches with selected price, then display red colour in price.

As shown below example.

i am writing below color expression but didn't get right result.

My matches value shows red color, but i want N/A value shows black color.

pastedimage1679888857970v3.png

pastedimage1679887746516v1.png

Is any way to do this.

I have the same question (0)
  • Sejal Profile Picture
    99 on at
    RE: Conditional Formatting in RDLC report layout in business central.

    Hello Nilam,

    You use below Expression 

    =IIF(Fields!price.Value = Fields!SelectedPrice.Value ,"Red","Black")

    pastedimage1679907065788v1.png

  • Nilam Bhor Profile Picture
    153 on at
    RE: Conditional Formatting in RDLC report layout in business central.

    I have already used that expression, but I didn't get right result.i.e.my N/A values are also coming in red color.

    I want only, if price & selected price values are matches then only, price values show in red, otherwise remaining price values display as a black color.

  • Suggested answer
    Vaishnavi J Profile Picture
    3,062 on at
    RE: Conditional Formatting in RDLC report layout in business central.

    Hi Nilam,

    You can use the below expression in color section.

    =Switch(Fields!Price.Value=Fields!Selected_Price.Value,"Red",IsNothing(Sum(Fields!Price.Value)),"Black",Fields!Price.Value<>Fields!Selected_Price.Value,"Black")

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.

  • Nilam Bhor Profile Picture
    153 on at
    RE: Conditional Formatting in RDLC report layout in business central.

    Thank you

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,553

#2
Sumit Singh Profile Picture

Sumit Singh 2,057

#3
YUN ZHU Profile Picture

YUN ZHU 1,915 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans