cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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
v-micsh-msft
Community Support
Community Support

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
v-micsh-msft
Community Support
Community Support

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.
Anonymous
Not applicable

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Check out the New Ideas Site

We are excited to announce a new way to share your ideas for Power Apps!

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