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 / How to access Multiple...
Power Apps
Unanswered

How to access Multiple levels of many-to-one relationship

(0) ShareShare
ReportReport
Posted on by 9

Dear Power Apps Community, 

 

I think I have a quite common issue, I already searched for answers (also found a few) but somehow I am still completely stuck and would appreciate your help. I am trying to access the QuestionCategory from the DbSaResponse table.

 

I have the following quite straightforward DataVerse Schema: 

 

DB_Schema.png 

I have a Gallery with my DbSaResponses as main source. I want to Display the Question, the Question Category and the different Answer Choices per Question which looks right now like this:

Gallery.png

 

As you can see I am able to access the QuestionText and Type simple via ThisItem.SpotAsessmentQuestionID.questiontext

For the AnswerChoices I manged to build a filter:

 

Filter(DbSaQuestionAnswersChoices, SpotAsessmentQuestionID.SpotAsessmentQuestionID = ThisItem.SpotAsessmentQuestionID.cr100_spotasessmentquestionid).QuestionAnswerPossibility

 

However I am somehow unable to create a Filter or LookUp function to access the CategoryName since ThisItem.SpotAsessmentQuestionID.QuestionCategory.CategoryName is not supported and every time to try to build a LookUpFunction I get Error Messages such as:  These types cant be compared: Guid, Record or  Table,Record:

 

LookUp(DbSaQuestionCategories, DbSaQuestionCategories.CategoryName = ThisItem.SpotAsessmentQuestionID.QuestionCategory)

 

Is there an Issue the way I set up my Data, or am I just simply missing something in my Function?

 

Thank you in advance.

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Caladryl 

    Please try the following,

    LookUp(DbSaQuestionCategories, DbSaQuestionCategories.CategoryID = ThisItem.SpotAsessmentQuestionID.QuestionCategory)

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • Caladryl Profile Picture
    9 on at

    @CNT Thank you for your fast response.

     

    I have tried that unfortunately already and I receive the error: These types cant be compared: Table, Record. 

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Caladryl Can you share a screen shot with the error?

  • Caladryl Profile Picture
    9 on at

    @CNT - Sure: This is currently the Error Message I receive. The Function makes actually completely sense to me.

     

    Error.png

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Caladryl OK Try this,

    LookUp(DbSaQuestionCategories, CategoryID = ThisItem.SpotAsessmentQuestionID.QuestionCategory)
    

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • Caladryl Profile Picture
    9 on at

    @CNT Could there be an Issue with my Dataverse Tables? I also tried your suggestion and received the error below:

    Error.png

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Caladryl You will have to a double LookUp,

    LookUp(DbSaQuestionCategories, CategoryID = LookUp(DbSa-Question, QuestionCategory=ThisItem.SpotAsessmentQuestionID.QuestionCategory).CategoryID)

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard