web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Named Formula results ...
Power Apps
Unanswered

Named Formula results in circular reference error when setting combo box value

(0) ShareShare
ReportReport
Posted on by 10

I have two fields: Module and Region.  I want to set the 'RBA Team_DataCard', which is a combo box of groups, to the appropriate group based on the selections made in the Module and Region fields. 

 

Rather than setting variables OnChange with duplicate code, I am trying to use a Named Formula that will pick up the correct group based on the values in the Module and Region fields.

 

If I set a label's text property to RouteToRBATeam.DisplayName, everything works as expected given these named formulas:

fModule = Module_DataCardValue.Selected.Value;
fRegion = Region_DataCardValue.Selected.Value;

RouteToRBATeam =
 With(
 First(
 Filter('MyCarestream Requests - Routing',
 'Support Level' = 1 And 
 Module.Value = fModule And
 Region.Value = fRegion
 ).'Route To'),
 {
 Claims: ThisRecord.'Route To'.Claims,
 DisplayName: ThisRecord.'Route To'.DisplayName,
 Email: ThisRecord.'Route To'.Email,
 Picture: ""
 });

 

However, when I try 'RBA Team_DataCard'.Default = RouteToRBATeam, I get the following 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. This is the shortest circular reference: 'RBA Team_DataCard'.'Default' -> 'RBA Team_DataCard','Default'."

 

I get similar errors if I try RBA_DataCardValue.DefaultSelectedItems = RouteToRBATeam

 

Here's what I've figured out from debugging:

  1. If I replace the named formulas fModule and fRegion with their expressions directly, the results are the same
  2. If I hard-code the Module and Region filters rather than referencing the dynamic field selections then RBA_DataCard.Default = RouteToRBATeam works perfectly.
  3. Setting a label's Text property = "Region: " & fRegion works as expected

 

RouteToRBATeam =
 With(
 First(
 Filter('MyCarestream Requests - Routing',
 'Support Level' = 1 And 
 Module.Value = "Business Workspace" And
 Region.Value = "GCC"
 ).'Route To'),
 {
 Claims: ThisRecord.'Route To'.Claims,
 DisplayName: ThisRecord.'Route To'.DisplayName,
 Email: ThisRecord.'Route To'.Email,
 Picture: ""
 });

 

Thank you for your help!

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard