cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LYNCHJL
Helper II
Helper II

Trying to set Variable to ThisItem.ID in Gallery from Collection Data

Hello,

 

I have an expandable Gallery sorted by Status with data coming from a Collection.  (see attached photo). I am trying to assign MyVar to ThisItem.ID OnSelect. 

 

For some reason the OnSelect is not working.  (Note: When I used a SP List as data source it worked fine.)

 

Gallery Items:

AddColumns(GroupBy((Filter(AllIncidentsUniqueNumber,
User().Email, "Tracker_x0020_All_x0020_Post_x00",
IRF=true,
Year="2020")),
"To_x0020_Do_x0020_List_x0020_Sta","Grouped"),"Sum",CountRows(Grouped))

 

OnSelect =Set(MyVar,ThisItem.ID)

 

I receive a message that OnSelect is Incompatible Type.

 

Thanks for the help.

 

1 ACCEPTED SOLUTION

Accepted Solutions
LYNCHJL
Helper II
Helper II

I was able to fix this by changing the name of MyVar to MyVariable.

View solution in original post

3 REPLIES 3
LYNCHJL
Helper II
Helper II

I was able to fix this by changing the name of MyVar to MyVariable.

View solution in original post

How did just changing a variable name solve the issue. We're you having same variable name myvar somewhere?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Hi @eka24 .  Yes, MyVar was already defined in my app and didnt match the data type of ThisItem.ID

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,152)