Hello Experts,
I have a gallery named Gallery_jobReports, I have placed an Icon beside every name of the column to sort each column. Also I have five checkboxes to filter my data. To filter I have placed five text labels and set its text property to : If(Checkbox4_5.Value = true, Checkbox4_5.Text) this way I get the value of check box into the label which is not visible, so when the user checks any box the data gets filtered. The Items property I have set as below
Switch(
locSortColumn,
"Title",
Sort(
If(
IsBlank(Label28.Text) && IsBlank(Label29.Text) && IsBlank(Label30.Text) && IsBlank(Label31.Text) && IsBlank(Label32.Text),'SU_Job_List',
Filter(
'SU_Job_List',
StartsWith(
Brand,
Label28.Text
) || StartsWith(
Brand,
Label29.Text
) || StartsWith(
Brand,
Label30.Text
) || StartsWith(
Brand,
Label31.Text
) || StartsWith(
Brand,
Label31.Text
)
)
),
Title,
If(
locSortAscending,
SortOrder.Ascending,
SortOrder.Descending
)
),
"Project",
Sort(
If(
IsBlank(Label28.Text) && IsBlank(Label29.Text) && IsBlank(Label30.Text) && IsBlank(Label31.Text) && IsBlank(Label32.Text),'SU_Job_List',
Filter(
'SU_Job_List',
StartsWith(
Brand,
Label28.Text
) || StartsWith(
Brand,
Label29.Text
) || StartsWith(
Brand,
Label30.Text
) || StartsWith(
Brand,
Label31.Text
) || StartsWith(
Brand,
Label32.Text
)
)
),
Project,
If(
locSortAscending,
SortOrder.Ascending,
SortOrder.Descending
)
),
"Episode",
Sort(
If(
IsBlank(Label28.Text) && IsBlank(Label29.Text) && IsBlank(Label30.Text) && IsBlank(Label31.Text) && IsBlank(Label32.Text),'SU_Job_List',
Filter(
'SU_Job_List',
StartsWith(
Brand,
Label28.Text
) || StartsWith(
Brand,
Label29.Text
) || StartsWith(
Brand,
Label30.Text
) || StartsWith(
Brand,
Label31.Text
) || StartsWith(
Brand,
Label32.Text
)
)
),
Episode,
If(
locSortAscending,
SortOrder.Ascending,
SortOrder.Descending
)
),
"Photographer",
Sort(
If(
IsBlank(Label28.Text) && IsBlank(Label29.Text) && IsBlank(Label30.Text) && IsBlank(Label31.Text) && IsBlank(Label32.Text),'SU_Job_List',
Filter(
'SU_Job_List',
StartsWith(
Brand,
Label28.Text
) || StartsWith(
Brand,
Label29.Text
) || StartsWith(
Brand,
Label30.Text
) || StartsWith(
Brand,
Label31.Text
) || StartsWith(
Brand,
Label32.Text
)
)
),
Photographer,
If(
locSortAscending,
SortOrder.Ascending,
SortOrder.Descending
)
),
"Shoot Date",
Sort(
If(
IsBlank(Label28.Text) && IsBlank(Label29.Text) && IsBlank(Label30.Text) && IsBlank(Label31.Text) && IsBlank(Label32.Text),'SU_Job_List',
Filter(
'SU_Job_List',
StartsWith(
Brand,
Label20.Text
) || StartsWith(
Brand,
Label21.Text
) || StartsWith(
Brand,
Label22.Text
) || StartsWith(
Brand,
Label23.Text
) || StartsWith(
Brand,
Label24.Text
)
)
),
'Shoot Date',
If(
locSortAscending,
SortOrder.Ascending,
SortOrder.Descending
)
),
"Brand",
Sort(
If(
IsBlank(Label28.Text) && IsBlank(Label29.Text) && IsBlank(Label30.Text) && IsBlank(Label31.Text) && IsBlank(Label32.Text),'SU_Job_List',
Filter(
'SU_Job_List',
StartsWith(
Brand,
Label28.Text
) || StartsWith(
Brand,
Label29.Text
) || StartsWith(
Brand,
Label30.Text
) || StartsWith(
Brand,
Label31.Text
) || StartsWith(
Brand,
Label32.Text
)
)
),
Brand,
If(
locSortAscending,
SortOrder.Ascending,
SortOrder.Descending
)
),
'SU_Job_List'
)
The error I am getting is -
Error: This rule creates a circular reference between properties, which is not allowed. A property cannot reference itself or other properties affected by its value. However when I use the same formula in my other app it works fine. Please help me in how to deal with this issue.
Thanks.
Below are the screenshots of my screen for your reference.
