I have an icon with visible property set to: If(ThisItem.Cancel = 1,true,false)
What I'm trying to do is if the cancel column has value 1 then show the icon else hide it. I'm using an SQL Server as a data source and the Cancel column will have 0 or 1 as a value.
What I'm missing here?
hi @omi18 your expression is correct, what type of error (if any) or behavior do your get do you get? if ThisItem.Cancel is a string you will have convert it, Value(ThisItem.Cancel) = 1 or ThisItem.Cancel = "1"
Hope this helps
Power Apps should map bit fields to the boolean data type. Therefore, if you were to set the visible property of your icon to just this, that should hopefully work:
Check out the News & Announcements to learn more.
Check out the new Power Platform Community Connections gallery!
Congratulations, the new Super User Season 2 for 2021 has started!
Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.