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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to lookup a choice...
Power Apps
Unanswered

How to lookup a choice column value

(0) ShareShare
ReportReport
Posted on by 364

Hi All, 

 

I have an app that manages goals set by employees and allows their manager to conduct a review for those goals. One column that gets looked at when a review happens is a choice column from Dataverse, called 'Achieved?'

 

Each employee has a maximum of 7 goals, and I am using the following code to bring the proper goal into the app: 

If(goalFirst= true,
LookUp('Goal Managements',Goal=_goal1).Goal,
If(goalSecond= true,
LookUp('Goal Managements',Goal=_goal2).Goal,
If(goalThird= true,
LookUp('Goal Managements',Goal=_goal3).Goal,
If(goalFourth= true,
LookUp('Goal Managements',Goal=_goal4).Goal,
If(goalFifth= true,
LookUp('Goal Managements',Goal=_goal5).Goal,
If(goalGG1 = true,
LookUp('Group Goals', ID = _GGID1).Goal,
If(goalGG2 =true,
LookUp('Group Goals', ID = _GGID2).Goal)))))))'

 

This code brings in the title for the goal. I use it multiple times to grab other items like the goal description and the due date.

 

Each goal has a button next to it, which is what changes values like goalFirst and _goal1. Does anyone know how I can lookup the specific value for a choice-based column? I'd like the status of the goal to appear when a review is being conducted, so that a manager can mark it as completed if it has been. I will include an image of the code as well as the screen in my app. 

 

Aurora_0-1669227594893.png

 

After all goal items are verified, I collect the values from each field on the screen with collect, and then patch any changes to the original data source. I would like to do this with the choice column as well. 

 

Does anyone have any suggestions for how I can achieve this? 

Categories:
I have the same question (0)
  • Aurora Profile Picture
    364 on at

    I have tried: 

     

    If(goalFirst= true,
    LookUp('Goal Managements',Goal=_goal1, Choices('Goal Managements'.'Achieved?')),
    If(goalSecond= true,
    LookUp('Goal Managements',Goal=_goal1, Choices('Goal Managements'.'Achieved?')),
    If(goalThird= true,
    LookUp('Goal Managements',Goal=_goal1, Choices('Goal Managements'.'Achieved?')),
    If(goalFourth= true,
    LookUp('Goal Managements', Goal=_goal1, Choices('Goal Managements'.'Achieved?')),
    If(goalFifth= true,
    LookUp('Goal Managements', Goal=_goal1, Choices('Goal Managements'.'Achieved?')),
    If(goalGG1 = true,
    LookUp('Group Goals', ID = _GGID1, Choices('Group Goals'.'Achieved?')),
    If(goalGG2 =true,
    LookUp('Group Goals', ID = _GGID2, Choices('Group Goals'.'Achieved?')))))))))

     

    but I get an error saying it expects some "column of simple views (such as text or numbers)" , and the values in my droopdown are [Object, Object] & [Object, Object].

     

    The values that should be returned are just "Yes" or "No"

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard