cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
karthika89
New Member

Sharepoint Lookup column is not updating value when distinct function is used with multilevel cascading

I referred the below article and tried implementing multi level cascading and it works fine but when I use distinct function in the item property of the field Sharepoint Lookup column is not updating

 

Ref Article : https://powerusers.microsoft.com/t5/Building-Power-Apps/Multiselect-Combobox-Checkbox-in-3-cascading...

 

Case :

Column1 : 

Item : Choices([@List Name].Column 1)

On Change :Clear(secondarytest);Collect(secondarytest,Ungroup(ForAll(DataCardValue2.SelectedItems,Filter(FruitType,Fruit=Value).Title),"Value"))

Column 2:

Items:

AddColumns(RenameColumns(secondarytest,"Title","Value"),"Id",LookUp(FruitType,Title=Value,ID))

On Chnange :

Clear(thirdtest);Collect(thirdtest,Ungroup(ForAll(DataCardValue3.SelectedItems,Filter(FruitDetails,'Fruit Type'=Value).Title),"Value"))

Column 3 : Items

AddColumns(RenameColumns(thirdtest,"Title","Value"),"Id",LookUp(FruitDetails,Title=Value,ID))

Trying to use distinct function :

Column 3: Items

Distinct(AddColumns(RenameColumns(thirdtest,"Title","Value"),"Id",LookUp(FruitDetails,Title=Value,ID)),Value)

When the above code is used the column removes duplicate values but when submitting to SP the data is not saved

0 REPLIES 0

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Solution Authors
Top Kudoed Authors
Users online (3,619)