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 / Displaying Table Items...
Power Apps
Unanswered

Displaying Table Items from Choice Column

(0) ShareShare
ReportReport
Posted on by 10

I have a Dataverse table, that has a column that is a Choice lookup.

 

I am using Powerapps to save data into the table ok.  But now I want to display a Gallery with all the columns from specific rows.   My number rows are showing ok, but my Choice Columns are not happy.

 

Code.

 

 

 

Refresh('Expenses');

ClearCollect(collectionOfItems, 
 Filter('Expenses', , 'Expenditure ID'.ID = varViewExpensesItem.ID)
);

 

 

 

 

Then when i put the above on a Gallery, and use the $ Amount column, its ok and gives me values, but when I select the Cost Center or Project Code column which is a Choice, I get the error:

Zaneeee12_0-1625191262778.png

 

Any ideas please

I have the same question (0)
  • Verified answer
    joe_hannes_col Profile Picture
    1,843 Super User 2024 Season 1 on at

    Hello @Zaneeee12,

     

    Using your code, you are currently referring to the record that is selected in your choice column.

    If you want to display this record in your gallery in a control, you would have to specify the field from the Cost Center or Project Code tables that you are interested in. E.g: CostCenter.Name to display the value from the Name column in the CostCenter table.

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

    Hi @Zaneeee12,

    Do you want to filter the Gallery based on a Choice column from your Dataverse table?

    Could you please tell me that the specific field type of the 'Project Code' and 'Cost Center', both are LookUp or Choice?

    If they are choice, please modify your formula as below:

    ThisItem.LookUpField.FieldFromAnotherTable // FieldFromAnotherTable is the field where the LookUp field retrieves value from

    vqiaqimsft_0-1625212424737.png

    Note that 'The Food' is a LookUp column in my main table that I used to populate the Gallery, and to display the 'The Food' value, I refer to it as below:

    ThisItem.'The Food'.'Food Name' // 'Food Name' is the field where the 'The Food' retrieves values from

    vqiaqimsft_1-1625212595253.png

     

     

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard