cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CountJuju
Frequent Visitor

Show Nested records in sharepoint list in drop drown list

Hi

 

I wonder if someone could provide some assistance.

 

I have 2 sharepoint lists

 

1. CostCentre

Title = cost centre code

2. CostCentreAssigned

Title = name of person cost centre assigned to

CostTo = lookup record of Cost Centre

 

I am trying to show in a drop down list all those records that are assigned to the current user

 

Filter(CostCentreAssigned, StartsWith(Title, currentUser.FullName)).CostCentre

 

However, this returns the costcentre records not the text and therefore does not populate my dropdown list

 

Any help would be greatly appreciated

 

Many thanks

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
gabibalaban
Super User
Super User

Hi @CountJuju 

 

Here is the formula you should use:

 

Filter(
     Choices([@CostCenterAssigned].CostTo),
                   Value in Concat(
                   Filter(CostCenterAssigned,
                            StartsWith(
                                     Title,
                                      currentUser.FullName
                                     )
                           ).CostTo,
                          CostTo.Value)
)

Hope it helps !

View solution in original post

Hi @CountJuju again 😊,

Is there any posibility to have the values doubled in CostCentre list ?

 

 

View solution in original post

4 REPLIES 4
gabibalaban
Super User
Super User

Hi @CountJuju 

 

Here is the formula you should use:

 

Filter(
     Choices([@CostCenterAssigned].CostTo),
                   Value in Concat(
                   Filter(CostCenterAssigned,
                            StartsWith(
                                     Title,
                                      currentUser.FullName
                                     )
                           ).CostTo,
                          CostTo.Value)
)

Hope it helps !

View solution in original post

CountJuju
Frequent Visitor

Top job @gabibalaban ! thank you - the only issue I have is that the values are displayed twice

 

Many thanks

Hi @CountJuju again 😊,

Is there any posibility to have the values doubled in CostCentre list ?

 

 

View solution in original post

CountJuju
Frequent Visitor

Doh! yes exactly that many thanks

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,810)