Breaking news from around the world
Get the Bing + MSN extension
Now Available in Community - MBAS 2019 Presentation Videos
Catch the most popular sessions on demand and learn how Dynamics 365, Power BI, PowerApps, Microsoft Flow, and Excel are powering major transformations around the globe. | View Gallery
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Talent TechTalks | Upcoming TechTalks
In this blog we will cover how to filter records in list based on condition using Filter function. Also we will see how to filter child records based on parent selected item.
Syntax – Filter (Table, Formula1 [, Formula2, … ] )
Filter function looks for all records in a table and returns only those records that satisfy formula.
Filter for Active Companies:
SortByColumns(Search(Companies, TextSearchBox1.Text, “cr2a5_companyname”), “cr2a5_companyname”, If(SortDescending1, Descending, Ascending))
SortByColumns(Search(Filter(Companies,_statuscode_label = “Active”) , TextSearchBox1.Text, “cr2a5_companyname”), “cr2a5_companyname”, If(SortDescending1, Descending, Ascending))
Filter Products list based on selected Company:
In company detail screen, we will add a Gallery control to display list of Products. We will then filter list to show products only for selected company.
Filter(‘Company Products’, cr2a5_Company1.cr2a5_companyid = BrowseGallery1.Selected.cr2a5_companyid)
If(IsBlank(cr2a5_expirationdate), ThisItem._statuscode_label, “Expired”)
If(IsBlank(cr2a5_expirationdate), “”, “Expiration Date: ” & ThisItem.cr2a5_expirationdate)
Business Applications communities