cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dr9106
Frequent Visitor

Setting the Default value of the check box to a lookup into an Excel field.

Hi, I'm trying to create a power app that will automatically "check" a checkbox when I link to an excel sheet on my OneDrive. So for example, if employees attended training session "A" but not training session "B" a checkmark would only appear on training session "A" only. Any insights here? attendance is being tracked on the excel sheet I upload to my OneDrive.

 

Employees should be able to log onto the app and see all of their required training sessions. Only upon successful completion of each training course should they see a checkmark appear. Any assistance provided here would be greatly appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions

@dr9106 ,

"Yes" and "No" are text value - the checkbox would need the Default

If(
   ThisItem.Action="Yes",
   true,
   false
)

The Update on the card would be

If(
   CheckBoxName.Value=true,
   "Yes",
   "No"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @dr9106 ,

When you say " when I link to an excel sheet on my OneDrive", this needs to be a shared file and the formatted table linked as a data source.

When you do this, you would have a field in the Excel sheet to store the Yes/No value, which would then populate the checkbox with whatever is stored. Is this what you are referring to?

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @WarrenBelz, thats correct the excel sheet would be shared on my One Drive, so when I link to the canvas app I'm creating it creates a _Power_AppsID_ as shown in the screenshot below. 

 

Where you see the "Action" which currently reads "Joined" we can change that to "Yes" or "No". So if a person attended the Opening Ceremonies their checkbox would populate, otherwise it would not if they haven't. Let me know what you think.

 

Capture_PowerApp.JPG

 

Thanks!

@dr9106 ,

"Yes" and "No" are text value - the checkbox would need the Default

If(
   ThisItem.Action="Yes",
   true,
   false
)

The Update on the card would be

If(
   CheckBoxName.Value=true,
   "Yes",
   "No"
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Hi @dr9106 ,

Just checking if you got the result you were looking for on this thread. Happy to help further if not.

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,562)