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 / Generate ID filed + te...
Power Apps
Answered

Generate ID filed + text based on another field (radio choices)

(1) ShareShare
ReportReport
Posted on by 43

micha_a_0-1688550182556.png

I would like to generate an ID field that displays the initials of the previously selected platform from a radio menu, along with an incremented number.

The formula I have on my ID field is:

Switch(ThisItem.'Publication platform'.Value, "City Intelligence", "CI", "Data Seeing Room", "DSR", "Intelligence Hub", "IH", "Open Data", "OD") & Text(CountA(Filter('Publication Metadata'.'Publication platform','Publication platform'.Value='Publication platform'.Value))+1)

 

So ideally what I want is for example if City Intelligence was selected from the radio choice, the ID will be : CI1, then the next logged item CI2 etc.

 

Am I using the wrong formula? It's worth mentioning that once they click on adding a new item, a pop up window will show up, they will have to select the platform and then it will take them to the Edit Form where the Publication Platform is already prepopulated with the field that was already selected from the pop up. - pics below

micha_a_1-1688550569732.png

micha_a_3-1688550646436.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    Hi @micha_a,

     

    The code looks good but looks like ThisItem.'Publication platform'.value is returning blank, which is why ID shows a number only.

     

    Can the publication platform radio button selection be obtained another way, for example with code similar to the following:

    rdoPublicationPlatform.Selected.Value

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

  • micha_a Profile Picture
    43 on at

    Changed it to Radio1.Selected.Value and it works perfectly, thank you

  • KeithAtherton Profile Picture
    3,709 Most Valuable Professional on at

    My pleasure! Well done for getting it working, and thank you for the update.


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.
    Follow me online.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard