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 / It is possible to show...
Power Apps
Unanswered

It is possible to show items in a combo box based on a datacard value?

(0) ShareShare
ReportReport
Posted on by 118

Hello All,

 

I have a combo box that pulls in items from a SQL table which includes a lot number and an mo number column.

An MO number could have multiple lot numbers. The combo box only needs to show the lot Numbers which I have been able to achieve using ShowColumns.

 

Is it possible to have the combo box show the list of lot numbers based on an MO number that will be autofilled into a datacardvalue?

 

ex: show column (lotnumbr) when datacardvalue 1 = monumbr

Categories:
I have the same question (0)
  • Moreshwar Profile Picture
    135 on at

    You can set Items property of combo box using Filter function. Filter(SQLTABLE, monumber = DataCardValue.Text, lotnumber). This will fetch all rows from your table which have monumber = DataCardValue and bind it to Combo Box.

  • ebraga Profile Picture
    118 on at

    Thanks Ill try this!

  • ebraga Profile Picture
    118 on at

    it's working but its throwing an error 

    ebraga_0-1624366673001.png

    how can I get around this or change the data type?

  • Dipak_Shaw Profile Picture
    108 on at

    @ebraga The above text contains non integer letters eg. 'SA'.

    That is why it is throwing error. Try only numerical value.

  • ebraga Profile Picture
    118 on at

    Do you mean I should omit the first two letters in the table so I'm only bringing in a numerical value? Filter(SQLTABLE, monumber = DataCardValue.Text, lotnumber) doesnt work if I change .Text to .Value 

  • Dipak_Shaw Profile Picture
    108 on at

    What is the datatype of monumnber Column in SQL table??

  • ebraga Profile Picture
    118 on at

    char.. sorry I don't know much about SQL my DBA builds the tables/views for me

  • Moreshwar Profile Picture
    135 on at

    Can you share screenshot of your SQL table & MONumber that you are passing for filtering the data?

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 96 Super User 2026 Season 1

Last 30 days Overall leaderboard