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 / Trouble with lookup no...
Power Apps
Answered

Trouble with lookup not retrieving data properly

(1) ShareShare
ReportReport
Posted on by 68

I want to display attendance data in a nested collection.
When I run it, only ID, user, and attachments are included.
The other columns are blank.
I can confirm that the original data contains other items.
It seems that I entered maze.

↓code

LostLamb_0-1720420945093.png

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @LostLamb 

     

    can u please copy/paste your code here so we do not need to retype?

     

     

    thanks

  • LostLamb Profile Picture
    68 on at

    @mmbr1606 

    OK!

     

    ClearCollect(colDummyTable,AddColumns(

    colTmpMonthTable As TMPCOL1,

    AttendanceItem,LookUp(Attendancedata,Name.Email=varUser.Mail And date=TMPCOL1.date),

    CalendarShift,LookUp(CalendarMaster,WorkCategory.Value=varUserMaster.CalendarShiftCategory.Value And date=TMPCOL1.date) ));

     

    thank you

  • Verified answer
    mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    hey @LostLamb 

     

    can u try this instead:

    ClearCollect(
     colDummyTable,
     AddColumns(
     colTmpMonthTable,
     "AttendanceItem", LookUp(Attendancedata, Name.Email = varUser.Mail And date = date),
     "CalendarShift", LookUp(CalendarMaster, WorkCategory.Value = varUserMaster.CalendarShiftCategory.Value And date = date)
     )
    );
    
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • LostLamb Profile Picture
    68 on at

    @mmbr1606 

     

    Thank you for your positive response.
    addcolumns doesn't like double quotes.
    I'm still in the middle of the maze.

    thank you

  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    have u tried single quotes or even without?

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Verified answer
    LostLamb Profile Picture
    68 on at

    The formula itself was fine, but it was the lookup that was causing the problem.

    It's best to avoid the version currently recommended.

    Thanks for your response.

    I was able to escape from the maze.

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 364 Most Valuable Professional

#2
11manish Profile Picture

11manish 186

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 105 Super User 2026 Season 1

Last 30 days Overall leaderboard