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 :
Small and medium business | Business Central, N...
Suggested Answer

Report column color change based on condition

(0) ShareShare
ReportReport
Posted on by 1,015

Hi All,

I just created a report depicted as follows, now the numbers in the first row shoe the dates of the month and year shown in the file.

The requirement is that the date which falls on a weekend ,that column has to be colored differently. How can this be achieved:

pastedimage1643057210186v1.png

Indira

I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,187 Moderator on at

    You can use this function to find the day of the week and add conditional formatting according to that:

    docs.microsoft.com/.../date2dwy-function--date-

  • Suggested answer
    MahGah Profile Picture
    15,613 on at

    Based on Inge's suggestion you can get the day of the week. Then you can use one of these suggestions for conditional formation

    https://social.msdn.microsoft.com/Forums/en-US/756b45f2-517a-4429-97cc-3d95822a8944/how-to-apply-conditional-formatting-on-a-rdlc-report?forum=vsreportcontrols

    social.msdn.microsoft.com/.../change-the-background-color-for-tablix-based-on-date

  • Suggested answer
    YUN ZHU Profile Picture
    101,126 Super User 2026 Season 1 on at

    Hi, adding to two experts' reply, please note that formulas for different colors are only valid in RDLC, not in Word.

    pastedimage1643070170839v1.png

    pastedimage1643070202598v2.png

    Thanks.

    ZHU

  • Indira88 Profile Picture
    1,015 on at

    Thank you for the response.

    the first query in this is since the report has the numbers as static how do  i form the date in the column and then check for weekday.

    The column headers are static ,

    if there is no way of doing it in mcros

    regards,

    Indira

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,187 Moderator on at

    Then you must first build a date based on day,month and year. For that you can use the dmy2date method as described here:

    docs.microsoft.com/.../system-dmy2date-method

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,138 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,279 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,192

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans