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 / Dropdown Column depend...
Power Apps
Answered

Dropdown Column dependent on Variable

(0) ShareShare
ReportReport
Posted on by 34

I have a collection :

ClearCollect(
 EQU_UTIL_OPTIONS,
 {
 id: 1,
 eng: "",
 spa: ""
 },
 {
 id: 2,
 eng: "Weather",
 spa: "Clima"
 },
 {
 id: 3,
 eng: "Repair",
 spa: "Reparar"
 },
 {
 id: 4,
 eng: "Preventative Maintenance",
 spa: "Mantenimiento preventivo"
 },
 {
 id: 5,
 eng: "In Transport",
 spa: "En transporte"
 },
 {
 id: 6,
 eng: "Available for Release (however, job will be charged if subsequently used on the job)",
 spa: "Disponible para liberación (sin embargo, el trabajo se cobrará si se usa posteriormente en el trabajo)"
 },
 {
 id: 7,
 eng: "No Operator",
 spa: "Sin operador"
 },
 {
 id: 8,
 eng: "Not Needed Fullday",
 spa: "No se necesita día completo"
 }
)

I'm trying to feed a dropdown from this collection.  I want it to display the value based upon a variable "varlang" 

 

 

If( varlang = "E" , 

SortByColumns(EQU_UTIL_OPTIONS,"id").eng, SortByColumns(EQU_UTIL_OPTIONS,"id").spa)
 
It doesn't like it all.
Any ideas?
Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @cpolito 

    Consider changing your formula to the following:

    SortByColumns(
     EQU_UTIL_OPTIONS,
     If(varlang="E",
     "eng",
     "spa"
     )
    )
     

    I hope this is helpful for 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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard