cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mattw112IG
Impactful Individual
Impactful Individual

Datatable and boolean confusion

I am seeing something weird I don't understand...

 

I have a datatable connected to SharePoint.  One column is Yes/No column.

 

In the datatable it has checkboxes but they are showing incorrectly, showing checked even though the values are false?

 

Screenshot 2021-02-02 141515.png

However if I put a fake command around the item, it actually displays correctly?

Screenshot 2021-02-02 141649.png

Any idea the right way to get the data table to work?

 

Thanks,

Terry

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @Mattw112IG 

Unfortunately, I don't the data table control works too well with boolean values.

Perhaps @mdevaney's advice in this post about changing the boolean column to a text column and outputting a checkbox symbol might be the solution.

https://powerusers.microsoft.com/t5/Building-Power-Apps/how-to-handle-Boolean-value-in-Datatable/td-...

 

If(ThisItem.'PTO Approved',"☑","☐")

 

 

 

View solution in original post

3 REPLIES 3
timl
Super User
Super User

Hi @Mattw112IG 

Unfortunately, I don't the data table control works too well with boolean values.

Perhaps @mdevaney's advice in this post about changing the boolean column to a text column and outputting a checkbox symbol might be the solution.

https://powerusers.microsoft.com/t5/Building-Power-Apps/how-to-handle-Boolean-value-in-Datatable/td-...

 

If(ThisItem.'PTO Approved',"☑","☐")

 

 

 

Mattw112IG
Impactful Individual
Impactful Individual

Thanks this worked... but a.) I don't understand why MS doesn't fix this... seems like a big mistake  b.) Still don't understand why my fake formula worked?

RhysD
Frequent Visitor

Hey guys, I came across this article when I was dealing with the same problem myself. I actually found that wiping out the information in the formula bar seems to resolve it altogether, that or commenting out the original information. I'm not too sure why this seems to work, but hey-ho! 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,610)