Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

filtration based on requirments

Posted on by 37
hii,
i want to Filter lookup position based that it's vacant and end date is from date to max 1 month (contract) 
 
tables are Position and contract with these column respectively:
Start date,Department(lookup),Parent position(lookup on itself),employee(lookup),Vacant(Yes/No).
employee(lookup),position(lookup),Start date,end date,Department.
can someone help?
 
  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    filtration based on requirments
    Hi Partner,
    The calculated field should on the contract(child) entity, Right?
    If so, you can use date field from position(parent) entity, like this:
    1)Insert function:
    2) Find position lookup:
    3)insert .    then you can select field of position entity:
  • Ralph_Marouni21 Profile Picture
    Ralph_Marouni21 37 on at
    filtration based on requirments
    @Leah ju even if the start date in a table and the end date in another table?
  • Verified answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    filtration based on requirments
    Hi partner,
    Yes, we can't achieve it directly through these two date fields in advanced find query.
    It doesn't have to be in code to do this, Maybe you can create one calculated field to calculate difference between two dates:
    Then you can use the calculated field as the filter in Advanced find query.
    I hope you can verify my answer if it helps you! If you have any questions, please feel free to contact me.
    Regards,
    Leah
  • Ralph_Marouni21 Profile Picture
    Ralph_Marouni21 37 on at
    filtration based on requirments
    @LeahJu yes i want to filter date from start to finish not more than 1 month but i think we can't do it unless in codding 
     
  • Ralph_Marouni21 Profile Picture
    Ralph_Marouni21 37 on at
    filtration based on requirments
    @CharbelHl. test
  • Ralph_Marouni21 Profile Picture
    Ralph_Marouni21 37 on at
    filtration based on requirments
    @User test
  • CharbelHl. Profile Picture
    CharbelHl. 2 on at
    filtration based on requirments
    test @User
  • Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    filtration based on requirments
    Hi Partner,
    Yes, you can filter parent records(position) based on child records(contract) in Advanced Find.
    Add row for vacant field, and add related entity for contract entity, then you can select field of contract.
    And i don't understand you said: and end date is from date to max 1 month (contract) 
    Can you explain? Does it mean the start to finish time is not more than 1 month?
    I hope you can verify my answer if it helps you! If you have any questions, please feel free to contact me.
    Regards,
    Leah

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

Product updates

Dynamics 365 release plans