Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Model Driven View One-To-Many column

(0) ShareShare
ReportReport
Posted on by 559

Hi guys,

 

So i was wondering. I have this case: A training has multiple durations. Would it be possible to have a column in my training view that shows the first duration date (related to the training) from the related durations table? How would this be achieved?

 

Best Regards,

Anthony

  • AnthonyD Profile Picture
    559 on at
    Re: Model Driven View One-To-Many column

    @dpoggemann Oh! that's how it works!

     

    Well i kinda did it another way and it works too! Here is how i did it:

    2021-12-10 13_43_59-Process_ SetFirstTrainingDate - Microsoft Dynamics 365.png

     

    Thanks for the great help!

    Best Regards,

    Anthony

  • Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on at
    Re: Model Driven View One-To-Many column

    Hi @Anthony_Dob ,

    When you are building the condition there is the ability to create multiple conditions and then group them with OR clause.  You select each row and then say "Group OR", see below.

    Screen Shot 2021-12-10 at 6.39.35 AM.png

     

  • AnthonyD Profile Picture
    559 on at
    Re: Model Driven View One-To-Many column

    @bipinshan 

     

    A rollup field does not work for me. I've tried that already and it's not returning any values.

     

    Best Regards,

    Anthony

  • AnthonyD Profile Picture
    559 on at
    Re: Model Driven View One-To-Many column

    @dpoggemann ,

     

    I've been trying to implement your instructions but  i can't seem to find a OR statement in the classis editor. This is how my workflow looks atm:

    2021-12-10 13_22_07-Process_ SetFirstTrainingDate - Microsoft Dynamics 365.png

    I see you can add OR and AND groups but you need 2 or more statements for that.

     

    Best Regards,

    Anthony

  • Verified answer
    Drew Poggemann Profile Picture
    9,278 Most Valuable Professional on at
    Re: Model Driven View One-To-Many column

    Hi @Anthony_Dob ,

    If rollup does not meet your needs I would do the following:

    1. Create the field for First Duration Date on the Training record
    2. Create realtime workflow triggering on create of Duration record and on modification of Duration record's Date field
    3. First step in workflow checks if the Training tables "First Duration Date" is null or > Duration table record's "Date" field
    4. If true on #3 then do Update Record on the Training record and set the date tot he Duration table's date

     

    The steps above will handle if you make changes to the dates on the Duration table and if you create a new one with a date < the current first one.

     

    2.  The first step should check if the Tra

  • Bipin D365 Profile Picture
    971 on at
    Re: Model Driven View One-To-Many column

    Hi,

     

    You can easily achieve this with the help of Roll up field.

     

    Create new roll up field in Training entity as Date Time data type and select field type as Rollup.

     

    Select Max function in rollup field on Duration Date.

     

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: https://xrmdynamicscrm.wordpress.com/

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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 17

#2
mmbr1606 Profile Picture

mmbr1606 15 Super User 2025 Season 1

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics