Skip to main content
Post a question

Notifications

Community site session details

Community site session details

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

Report column color change based on condition

Like (0) ShareShare
ReportReport
Posted on 24 Jan 2022 20:47:12 by 908

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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,005 Moderator on 26 Jan 2022 at 07:30:32
    RE: Report column color change based on condition

    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

  • Indira88 Profile Picture
    908 on 25 Jan 2022 at 18:50:29
    RE: Report column color change based on condition

    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
    YUN ZHU Profile Picture
    80,640 Super User 2025 Season 1 on 25 Jan 2022 at 00:24:19
    RE: Report column color change based on condition

    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

  • Suggested answer
    MahGah Profile Picture
    15,437 on 24 Jan 2022 at 21:09:27
    RE: Report column color change based on condition

    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
    Inge M. Bruvik Profile Picture
    1,005 Moderator on 24 Jan 2022 at 20:58:30
    RE: Report column color change based on condition

    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-

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,647 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,663 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans