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 Apps
Answered

Text Aligment

(0) ShareShare
ReportReport
Posted on by 997

Hello,

I have troubles with the Text Align part

What do i wrong?

 

If(
 Lower(
 Last(
 FirstN(
 Split(
 ThisItem.Result,
 "·"
 ),
 2
 ).Result
 ).Result
 ) =Lower("John"),
 Align.Left || Lower("Jane"),
 Align.Right
 ,Align.Left
)

But i get this error

TimmyBoy_0-1675389416831.png

Thank you

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,954 Most Valuable Professional on at

    Hi @TimmyBoy ,

    Try this structure - note I have used your logic and have not tested any result of the top bit

    With(
     {
     wAlign:
     Lower(
     Index(
     Split(
     ThisItem.Result,
     "·"
     ),
     2
     ).Result
     ).Result
     },
     If(
     wAlign = Lower("John"),
     Align.Left,
     wAlign = Lower("Jane"),
     Align.Right,
     Align.Left
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • TimmyBoy Profile Picture
    997 on at

    Hello @WarrenBelz 

    Awesome, works like i wanted

    Thank you 🙂

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 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 190 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard