cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Axal
Post Prodigy
Post Prodigy

How to use split in a collection

Hi,

 

This is kinda confusing, but I'm using Split function to have a filename and filetype like this : Set(Col1, Split("test.xlsx","."))

The result as expected is a collection of those two part, but in 1 column with name "Result"

 

How do I get the 1st and the 2nd, lets say I want to put each in a label.

 

Or is there a better way to have the file name and file type ?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

You can access the two split values this way:

First(Col1).Result

Last(Col1).Result

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
BCLS776
Super User
Super User

You can access the two split values this way:

First(Col1).Result

Last(Col1).Result

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

Hi,

Thank you very much.

Solved.

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,866)