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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Model Driven View One-...
Power Apps
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

I have the same question (0)
  • Bipin D365 Profile Picture
    971 on at

    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/

  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    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

  • AnthonyD Profile Picture
    559 on at

    @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

  • AnthonyD Profile Picture
    559 on at

    @bipinshan 

     

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

     

    Best Regards,

    Anthony

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    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

    @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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard