cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

How to get the length of an array ?

Hello there !

 

I have a sharepoint multi-line column where i store users' email separated by a ";;", like following :

johndoe@organization.com;;janedoe@organization.com;;calamityjane@organization.com

 

In Powerapps,i would like to count how many passenger email I got.

In other languages/logics, i would do a simple length(split(PassengerEmail,";;")), but unfortunately there is no such thing in powerapps !

 

Any idea on how to proceed ?

 

Thanks a lot, have a wonderful day!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: How to get the length of an array ?

Try this:

CountRows(
Split("johndoe@organization.com;;janedoe@organization.com;;calamityjane@organization.com",
";;")
)

Which should be the same as the function you posted.

 

Regards,

Michael

Community Support Team _ Michael Shao
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

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: How to get the length of an array ?

Try this:

CountRows(
Split("johndoe@organization.com;;janedoe@organization.com;;calamityjane@organization.com",
";;")
)

Which should be the same as the function you posted.

 

Regards,

Michael

Community Support Team _ Michael Shao
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

Highlighted
Helper V
Helper V

Re: How to get the length of an array ?

Hi Michael,

Thanks a lot, I might have not read the article on Count until the end ..

This does exactly what i was wanting !

Have a nice day !

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

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 (10,893)