Hello,
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?
Thanks,
Omi
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
Hi @omi18
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:
ThisItem.Cancel
User | Count |
---|---|
157 | |
93 | |
78 | |
73 | |
57 |
User | Count |
---|---|
201 | |
166 | |
98 | |
94 | |
79 |