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 / Auto populate one choi...
Power Apps
Unanswered

Auto populate one choice column value to another choice column value according to the value in label

(0) ShareShare
ReportReport
Posted on by 4

Hello Team,

 

I have one date(datacardvalue01) field date and 2 choice fields in form i.e., 1. X_Hours (1 to10) (datacardvalue02), 2. Y_Hours(1 to10)

 

I have written a label on top of date filed in form i.e., text (Datacardvalue01.SelectedDate,LongDate) which will be shown as

(Weekday (Sunday, Monday etc.) based on the selected data, Month (January, Ferbraury etc.) based on the selected data, Year (2020,2021,2022) based on the selected data.

 

My scenario is if label weekday is Monday i.e. it should auto populate X_Hours (1 to10) value into Y_Hours (1 to10)

 

I have written a code in Default Property of  Y_Hours(1 to10) choice column like this if("Monday" in label.text,datacardvalue01.selected.value) but it is not working.

 

 

 

Please help me to solve this scenrio

 

Thanks

Mahesh

 

 

 

 

 

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Mahesh006,

    Modify your formula as below:

    If("Monday" in Label6.Text,X_Hours.Selected.Value) 

    vqiaqimsft_0-1668566900863.png

     

  • Mahesh006 Profile Picture
    4 on at

    Hello @v-qiaqi-msft 

     

    I am trying with form component. i wrote a code like If("Tuesday" in Label.text, DatacardValue02.text.Selected.Value) but it is throwing a error like "EXPECTED A RECORD VALUE"

     

    Thanks

    Mahesh

  • Mahesh006 Profile Picture
    4 on at

    hello @v-qiaqi-msft 

     

    FYI - here label should be selected value from the date card value from the form.

     

     

    Thanks

    Mahesh

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Mahesh006,

    Could you please tell me that if X_Hours (1 to10) and  Y_Hours (1 to10) are both Combo Box?

    How you set the Items property of the X_Hours (1 to10) and Y_Hours (1 to10)?

     

    I have the formula on the Default property of a Dropdown box instead of a Combo Box.

     

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard