cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vodomin1
Regular Visitor

AddColumns Lookup from the same table

Any help would be greatly appreciated. I'm sure I have something wrong.   Building a PowerApp from a SharePoint list of time slots of either 15 or 30 minutes.  To do this I've set each time slot for 15 minutes and then I'll filter the collection based on looking if the next slot's status is marked as available.  I'm also throwing in the ID (temporarily) just for error checking.   I've tried this several ways and it returns nothing or an error.   The List is the MagistrateHearingDates.   From this a user selects from the AvailableDates, which should return all of the open time slots.   At this point i'm just trying to add a column that will tell me whether the next time slot is available.  

ClearCollect(
    colAvailableTimes,
    AddColumns(
        Filter(
            MagistrateHearingDates,
            HearingDate = AvailableDatesGallery.Selected.Title4.Text
        ),
        "AvailFor30",
        LookUp(
            UpcomingDates,
            ucdHDDate = intHDEDate,
            Concatenate(
                Text(ID),
                Status.Value
            )
        )
    )
)

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Vodomin1 ,

Could you

1)show me your error message?

2)your list structure?

3)the data type of HearingDate,Title4,ucdHDDate,intHDEDate?

Just beased on your formula, I'm not sure what's your problem.

Maybe you could try this:

ClearCollect(
    colAvailableTimes,
    AddColumns(
        Filter(
            MagistrateHearingDates,
            Text(HearingDate) = AvailableDatesGallery.Selected.Title4   //I assume that HearingDate is date type,Title4 is text type
        ),
        "AvailFor30",
        LookUp(
            UpcomingDates,
            ucdHDDate = intHDEDate,
            Concatenate(
                Text(ID),
                Status.Value
            )
        )
    )
)

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yutliu-msft
Community Support
Community Support

Hi @Vodomin1 ,

Could you

1)show me your error message?

2)your list structure?

3)the data type of HearingDate,Title4,ucdHDDate,intHDEDate?

Just beased on your formula, I'm not sure what's your problem.

Maybe you could try this:

ClearCollect(
    colAvailableTimes,
    AddColumns(
        Filter(
            MagistrateHearingDates,
            Text(HearingDate) = AvailableDatesGallery.Selected.Title4   //I assume that HearingDate is date type,Title4 is text type
        ),
        "AvailFor30",
        LookUp(
            UpcomingDates,
            ucdHDDate = intHDEDate,
            Concatenate(
                Text(ID),
                Status.Value
            )
        )
    )
)

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (46,424)