cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
hnguy71
Helper V
Helper V

Adding Column to Label inside Gallery creates Circular Reference

Hi All.

 

I have a long formula inside the Items property of a gallery which takes into account slicers. I have a Text label called validate_Recon that shows a value of "OK" or "MISMATCH" based on a the sum of the fields inside the gallery.  I know I want to add a column to the gallery and sort the entire gallery where any items that are "MISMATCH" will be on top and any "OK" items will be sorted at the bottom. My current working formula looks like this:

If(_SuperUser,

// If SuperUser, Let's direct SuperUser to DetailList
Filter(DetailList, GM = _FindGM && Module = _FindModule && ERP = _FindERP && 
If(!IsBlank(dropAcctUnit.SelectedText.Value), AcctUnit = dropAcctUnit.SelectedText.Value, true) && 
If(!IsBlank(dropCompany.SelectedText.Value), Company = dropCompany.SelectedText.Value, true) &&
If(!IsBlank(dropCC.SelectedText.Value), CC = dropCC.SelectedText.Value, true) && 
If(!IsBlank(dropAccount.SelectedText.Value), Account = dropAccount.SelectedText.Value, true) &&
If(!IsBlank(dropBL.SelectedText.Value), BL = dropBL.SelectedText.Value, true) &&
If(!IsBlank(dropPL.SelectedText.Value), PL = dropPL.SelectedText.Value, true)
),

// Else Let's Re-direct to L2 Records
Filter(_L2Records, GM = _FindGM && Module = _FindModule && ERP = _FindERP &&
If(!IsBlank(dropAcctUnit.SelectedText.Value), AcctUnit = dropAcctUnit.SelectedText.Value, true) && 
If(!IsBlank(dropCompany.SelectedText.Value), Company = dropCompany.SelectedText.Value, true) &&
If(!IsBlank(dropCC.SelectedText.Value), CC = dropCC.SelectedText.Value, true) && 
If(!IsBlank(dropAccount.SelectedText.Value), Account = dropAccount.SelectedText.Value, true) &&
If(!IsBlank(dropBL.SelectedText.Value), BL = dropBL.SelectedText.Value, true) &&
If(!IsBlank(dropPL.SelectedText.Value), PL = dropPL.SelectedText.Value, true)
))


And here when I try to add a column it gives me a circular reference error:
circular_reference.png
How do I go about sorting my data and removing the circular reference?

2 REPLIES 2
v-yutliu-msft
Community Support
Community Support

Hi @hnguy71 ,

Could you show me the formula about validate_Recon?

According to your error message, the definition of validate_Recon is related to the Filter function that you showed.

If they effect each other, this will leads to cricle.

So I suggest you try to set the Label's value to variable and try again.

If it doesn't work, I suggest you modify the definition of validate_Recon.

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @hnguy71 how are you progressing with this? Was the above reply helpful?

 

Thank you,

 

@Anonymous 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (846)