Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Row and column visibility based on Group totals

Posted on by Microsoft Employee

Hi all,

I have a requirement where I need to hide row group and column group based on Group totals. The matrix is grouped on Resource and Project for Row Group and Column Group is on Every Week's Monday. Additionally, Group total is an expression: Work Hours in Week - Bookable Resource Bookings Hours in Week. E.g: In the table below, For Resource A, in 3rd March 2018 Week, total will be  40-(24+8)= 8

I want to show data only when the Group total is a negative value. In the table below, I want to hide/ remove Resource A Group since there is no negative Totals value in the specified date range

Same for Column visibility, column with negative values needs to be displayed. In the table below, I want to hide/remove Column 03-20-2018 since there is no negative Totals value in the specified week.

Resource Project 03-06-2018 03-13-2018 03-20-2018
         
A ABC 24 24 24
A XYZ 8 0 0
A LMN 0 0 0
         
  Total 8 16 16
         
B ABC 8 0 0
B XYZ 8 32 8
B LMN 0 32 0
B PQR 20 0 0
B DFG 20 32 0
         
  Total -16 -56 32

Any suggestions on how to achieve this.

*This post is locked for comments

  • Suggested answer
    Preeti Sharma Profile Picture
    Preeti Sharma 2,678 on at
    RE: Row and column visibility based on Group totals

    Hi,

    You can try to parse this total into string and then find "-" literal in that string.

    If you found "-" the you can hide column visibility.

    Moreover you can add logic on column directly to find total(as you said you have applied this logic "Work Hours in Week - Bookable Resource Bookings Hours in Week") and check if its less than 0 then hide column else show it.

    Hope this helps:)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans