cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Coopedup
Resolver II
Resolver II

Split a filtered field

I'm gathering the last Activity ID from my demand table. Result currently is Act-23. I want to them split this and take just the 23!  I'm really struggling to put a split into my existing formula. 

 

 

Last(Filter(DemandTbl, !IsBlank(ActID),ActID)).ActID

 

 

I suspect the biggest personal issue is I never know what order these commands go, do I put Split at the start or after the Filter!

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

Try this to get a value of "23" out of the Split():

Last(Split(Last(Filter(DemandTbl, !IsBlank(ActID),ActID)).ActID,"-")).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

Try this to get a value of "23" out of the Split():

Last(Split(Last(Filter(DemandTbl, !IsBlank(ActID),ActID)).ActID,"-")).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.
Nogueira1306
Super User
Super User

Last(Split(Last(Filter(DemandTbl, !IsBlank(ActID),ActID)).ActID,"-"))

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

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.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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