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

Filtered Excel table to Collection not working

We have an Excel table that we let users filter down to data they need to see. The results are from 1 to 5 rows from our table. I am able to use drop down and display the results in a List Box using this formula: 

  • Sort(Distinct(Filter(HCL,Server in DropServer.Selected.Value , Company in DropCompany.Selected.Value, Controller in DropHBA.Selected.Value),'Versions'),Result)

Which shows properly as:

Screen Shot 2018-07-21 at 1.39.42 PM.png

 

What I really need to do is use the split function (by comma) and get the data seperated in a single list. So using data from above, I would like to get 5 option from the above list ( 6.5 U1 is duplicated in both lines) in a List Box so that a user can select just the single version they need.

 

I tried to copy this data to a collection in which I planned to use split function. I used a button with the following OnSelect function:

  • ClearCollect(ESXlist,{Ver: Sort(Distinct(Filter(HCL,Server in DropServer.Selected.Value , Company in DropCompany.Selected.Value, Controller in DropHBA.Selected.Value),'Esx Version'),Result) } )

When I try to display the results in a listbox or collection I dont see any data. I get the following:

Screen Shot 2018-07-21 at 4.41.53 PM.png

 

 I am stuck at this point and not sure how to go further.  Help would be greatly appreciated as I have be at this for a week.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Filtered Excel table to Collection not working

HI @OurAppGuy,

 

Do you want to list out all records within the ESXlist and then get the data seperated in a single list?

 

Please take a try to set the Items property of the Gallery control to following formula:

Split(
    Left(
       Concat(ForAll(ESXlist,Concat(Ver,Result&", ")),Value),
       Len(Concat(ForAll(ESXlist,Concat(Ver,Result&", ")),Value))-2
    ),
    ", "
)

Set the Text property of the Label control within the Gallery control to following formula:

ThisItem.Result

 

Please take a try with above solution, then check if the issue is solved on your side.

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Highlighted
Community Support
Community Support

Re: Filtered Excel table to Collection not working

Hi @OurAppGuy,

 

Could you please share a bit more about your Excel table?

Do you want to display the data within a Gallery control?

Could you please share a bit more about the Items property of the Gallery control?

Further, where do you use the split function?

 

I have made a test on my side, please take a try with the following workaround:3.JPG

 

 

Set the OnSelect property of the "Add Collection" button to following formula:

 

ClearCollect(
ESXlist,
{
Ver:Sort(Distinct(Filter(HCL,Server in Dropdown1.Selected.Value, Company in Dropdown2.Selected.Value, Controller in Dropdown3.Selected.Value),Versions),Result)
}
)

 

 

Set the Items property of the Gallery control to following formula:

 

Split(
Left(
Concat(First(ESXlist).Ver,Result&", "),
Len(Concat(First(ESXlist).Ver,Result&", "))-2
),
", "
)

Set the Text property of the Label control within the Gallery control to following formula:

 

 

ThisItem.Result

 

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
New Member

Re: Filtered Excel table to Collection not working

To put split in the items worked.

 

Thanks. You guys are awsome.

 

Highlighted
New Member

Re: Filtered Excel table to Collection not working

This works some of the time (when there is only 1 result). It show the results of just the first record in Ver. I need to list out all the others. Some times we have 2 or more results.

 

 

 

Highlighted
Community Support
Community Support

Re: Filtered Excel table to Collection not working

HI @OurAppGuy,

 

Do you want to list out all records within the ESXlist and then get the data seperated in a single list?

 

Please take a try to set the Items property of the Gallery control to following formula:

Split(
    Left(
       Concat(ForAll(ESXlist,Concat(Ver,Result&", ")),Value),
       Len(Concat(ForAll(ESXlist,Concat(Ver,Result&", ")),Value))-2
    ),
    ", "
)

Set the Text property of the Label control within the Gallery control to following formula:

ThisItem.Result

 

Please take a try with above solution, then check if the issue is solved on your side.

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,998)