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.

View solution in original post

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

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