Hi @paguirre ,
Two things here - if you are using SharePoint, the ID is always greater than 0, however your main issue is that the column name in the Table needs to be the same in both instances, so
With(
{
wData:
Filter(
'CombBox Student Behaviors',
ID > 0
)
},
SortByColumns(
If(
Toggle_Concern_Positive.Value,
RenameColumns(
wData,
"PositiveBehaviors",
"Value"
),
RenameColumns(
wData,
"ConcernBehaviors",
"Value"
)
)
).Value,
"Value"
)
or if you do not need the ID filter
SortByColumns(
If(
Toggle_Concern_Positive.Value,
RenameColumns(
'CombBox Student Behaviors',
"PositiveBehaviors",
"Value"
),
RenameColumns(
'CombBox Student Behaviors',
"ConcernBehaviors",
"Value"
)
).Value,
"Value"
)
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.
MVP (Business Applications) Visit my blog Practical Power Apps