web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to extract specifi...
Power Apps
Answered

How to extract specific text from data card ?

(0) ShareShare
ReportReport
Posted on by 130

Hi All,

I have a data card with value :" Sunday>1:00 AM-2:00 AM,3:00 AM-4:00 AM,
Monday>1:00 AM-2:00 AM ,5:00 AM-6:00 AM , "

I want to extract out Monday from it but not able to do it.

I'm manage to extract out other text from this card into variables but not Monday.

Here is my code :
Set(varSun,With({_Place:First(Split( Parent .Default,">")).Result},Right(_Place,Len(_Place)-Find(">",_Place))))
&&
Set(varSun1time,Text(With({_Place:First(Split( Parent .Default,"-")).Result},Right(_Place,Len(_Place)-Find(">",_Place)))))
&&
Set(varSun2time,Text(With({_Place:Last(FirstN(Split( Parent .Default,","),1)).Result},Right(_Place,Len(_Place)-Find("-",_Place)))))
&&
Set(varSun3time,Text(With({_Place:Last(FirstN(Split( Parent .Default,"-"),2)).Result},Right(_Place,Len(_Place)-Find(",",_Place)))))
&&
Set(varSun4time,Text(With({_Place:Last(FirstN(Split( Parent .Default,","),2)).Result},Right(_Place,Len(_Place)-Find("-",_Place)))))
&&
Set(varMon,Text(With({_Place:Last(FirstN(Split( Parent .Default,">"),2)).Result},Right(_Place,Len(_Place)-Find(",",_Place)))))

---------------------
Variable varMon is to store Monday text but it's not working.

Regards,
Rahul



Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Substitute(
     First(
     Split(
     Substitute(
     Parent.Default,
     First(
     Split(
     Parent.Default,
     ", "
     )
     ).Result,
     Blank()
     ),
     ">"
     )
     ).Result,
     ", ",
     Blank()
    )

     

     

  • r_voyager Profile Picture
    130 on at

    Thanks for the reply but I don't want to show when the item gets created. I just want to extract it, user selects the day and I want to show those days on another screen.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @r_voyager 

    I misunderstood at first.  I revised my approach.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @r_voyager 

    I misunderstood at first.  I revised my approach.  I copied your text and used the above formula and it extracted Monday.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard