Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Answered

Virtual Table Column LookUp conversion for Model Driven App

(0) ShareShare
ReportReport
Posted on by 101

Hi, 

I have a virtual table pulling from a SQL table with a "status" column with integers as a lookup value to another lookup table. 

1= started

2= in process 

3=pending, etc. 

In the Canvas, app I would simply create a lookup function, and if the table was standard, I would make a lookup column. However, I am required to keep the SQL table due to other integrations.  I would like to use a model driven app for the filtering and sorting ability. The problem is that the user just sees integers and not the lookup value in the table. I would like to see if it was possible to 

a) show the lookup value

b) if the table is editable, could I filter the lookup table to the status item values in a dropdown for the user to select. 

Categories:
  • Verified answer
    cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: Virtual Table Column LookUp conversion for Model Driven App

    It is possible with virtual tables, but only if you write your own Custom Virtual Table Provider.

     

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/virtual-entities/custom-ve-data-providers

     

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: Virtual Table Column LookUp conversion for Model Driven App

    Hi @PaddyWann , 
    That's indeed an issue: the sorting and filtering will be based on your data (so integer value), not on your rendered text.
    To have also the filter/search based on the text, you would need something on the server-side. That could be a PlugIn on RetrieveMultiple message, or a (PowerFx) Formula Column. But I don't know if that is possible on Virtual Tables.

     

  • PaddyWann Profile Picture
    101 on at
    Re: Virtual Table Column LookUp conversion for Model Driven App

    Thanks @DianaBirkelbach ,

    I was able to turn a column text to green just to test. I had to modify eslint file a good bit, but I think I'm getting the hang of it. 

     

    The grid wouldn't sort or filter based on the text right?

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: Virtual Table Column LookUp conversion for Model Driven App

    Hi @PaddyWann , 


    I totally agree with @cchannon . Just in case it helps, I have here an example or Power Apps Grid customizer control for a dropdown. In my case I use it for showing colors.. in your case, you would need to change the options: https://github.com/brasov2de/GridCustomizerControl/tree/main/CellRenderer

  • cchannon Profile Picture
    4,702 Super User 2025 Season 1 on at
    Re: Virtual Table Column LookUp conversion for Model Driven App

    You can simulate a lookup by using a PCF, both on the form as a normal PCF and in views using the Editable Grid Control (Customize the editable grid control - Power Apps | Microsoft Learn)

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
stampcoin Profile Picture

stampcoin 15

#2
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

Overall leaderboard

Featured topics