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

Community site session details

Session Id : t5+5c6bnPuOjFZGW7h+Wo0
Power Apps - Microsoft Dataverse
Unanswered

Category and subcategory of dataverse table

Like (0) ShareShare
ReportReport
Posted on 17 Jun 2022 13:45:42 by 19

I'm working on project tracking canvas app based on Dataverse. I spent quite a lot of time figuring out how to design the table. What I would like to have is when user enter a project, when a category is selected, subcategory shows only subcategories related to selected category, again when subcategory is selected the next subcategory (level 3) to show only subcategories related to previously selected subcategory (level 2).

 

I'm not sure if this is the right approach but this what I tried. I have main table, let us call it Project with many columns including Category column which is a lookup column to another table CatList. In the CatList table I have three columns Level 1 Level 2 Level 3.  In the canvas app, form and view of Project table I can see Category field with option of level 1. But how can I get level 2 and level 3?  If I create level 2 and 3 fields in Project table how can I get those values in canvas app form. Thank you very much for any suggestions

 

golodias_0-1655473049779.png

 

I have the same question (0)
  • golodias Profile Picture
    19 on 23 Jun 2022 at 13:28:10
    Re: Category and subcategory of dataverse table

    Actually I run into another issues, submit form shows 'Value must be a data entry record' error. It seems lookup column expect Choices in the combobox 

  • golodias Profile Picture
    19 on 23 Jun 2022 at 11:23:44
    Re: Category and subcategory of dataverse table

    Hi thanks, actually Depends on form control does the job! I just created a single table of category and subcategories and linked to the main project table. I can access each column of the category table (level 1, level 2 etc). Using 'Depends on' fields I just put Filter(CategoriesTable, Code = Dropdown3.Selected.Code) in the Items of the current datacard. 

    golodias_0-1655983128659.png

     

  • ChrisPiasecki Profile Picture
    6,414 Most Valuable Professional on 17 Jun 2022 at 14:11:42
    Re: Category and subcategory of dataverse table

    Hi @golodias,

     

    This is not an uncommon scenario. You're on the right track. I would define a table structure something like this:

    • Table for Category (level 1)
    • Table for Sub-category (level 2). Add a Lookup column to Category.
    • Table for next Sub-category (level 3). Add a Lookup column to Sub-category (level 2).
    • On your Project table, add Lookup columns for category and the sub categories. 

    Then create all your records for the categories/sub-categories, setting the appropriate lookups for sub categories.

     

    In your Canvas app, you can then add drop downs or Lookup controls and use the Filter function which would look something like:

     

    Filter(Sub-category, category = category dropdown.SelectedItem)

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 892 Most Valuable Professional

#2
Power Apps 1919 Profile Picture

Power Apps 1919 356

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 310 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics