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 Apps
Unanswered

PowerApps

(1) ShareShare
ReportReport
Posted on by 4
CTCData i get from using ClearCollect which is combine 3 data into CTCData, but for my CTC_Monitoring a few column no appear their item on CTCData, did i miss anything?
 
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,968 Moderator on at
    Hi,
     
    You haven't posted any code at all. There is no way for us to tell what you missed. The pictures are great!!!! But please post your code, and also the data that you expect to see.
     
     
    It sounds like you expect the values that show in CTC_Monitoring, to appear in CTCData. However, you have to explain how they relate to the other data,
    since you said it takes 3 other collections/data sources to make CTCData
     
    And then please share the code and  we can help.
  • CU13080235-3 Profile Picture
    4 on at
    oh sorry here is my code -
     
    ClearCollect(
        ContractData,
        AddColumns(
            CTC_ContractNo,
            tblContractDetails,// Add a new column named 'ContractTitle'
            LookUp(
                tblContractDetails,
                Title = CTC_ContractNo[@Title],
                'Contract Title'
            )
        )
    );
    // Create a collection for the Monitoring Data
    ClearCollect(
        MonitoringData,
        ShowColumns(
            CTC_Monitoring,
            ProgressText
        )
    );
    // Combine both collections
    ClearCollect(
        CTCData,
        ForAll(
            ContractData,
            Patch(
                ThisRecord,
                {
                    ProgressText: LookUp(
                        MonitoringData,
                        Title = ThisRecord.ProgressText,
                        ProgressText
                    )
                }
            )
        )
    );
  • victorcp Profile Picture
    2,350 Moderator on at
    Hi,
     
    When you use ThisRecord Power Apps understands that you want the closest Record, so inside the LookUp when you used ThisRecord it gets the item related to it.
     
    In order to fix your issue, you can create a variable to get the current record (CD - ContractData) and use it instead of ThisRecord, like this: 
    // Combine both collections
    ClearCollect(
        CTCData,
        ForAll(
            ContractData As CD,
            Patch(
                CD,
                {
                    ProgressText: LookUp(
                        MonitoringData,
                        Title = CD.ProgressText,
                        ProgressText
                    )
                }
            )
        )
    );
    Hope it helps you :)

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

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard