Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jasonyeung87
Helper V
Helper V

"A cyclic reference was encountered during evaluation" error when creating new column

Hi,

 

I'm trying to create a new column in my dataset that contains a concatenated string of row values of matching records. I'm using the Power Query editor and below is a sample of my recordset:

20230911_Non-compliance new column.JPG

 

The new column's name is "Patch Status All" and I'm matching based on the computer name. What I want is to have this column contain a contatenated string of the "Patch Status" value of records that have the same computer name. For example, there are 2 rows with the computer name "1L3CD2Q". Each row has a different "Patch Status": Patches Not Attempted and Agent Offline. I want the value of "Patch Status All" to be "Patches Not Attempted; Agent Offline" for both rows.

 

I'm trying to use the "Table.SelectRows" function to obtain the rows, but I am receiving the error "Expression.Error: A cyclic reference was encountered during evaluation.". The power query I'm using is:

= Table.SelectRows(
#"Non-compliant Assets",
each ([ComputerName] = "")
)

 

(the initial test was to compare ComputerName to a blank string, but even that generates the same error. I was wondering if there's a function that allows me to get a concatenated string of matching rows?

 

Jason

 

1 REPLY 1
amitchandak
Super User
Super User

@jasonyeung87 , Use last step table name

 

= Table.SelectRows(
#"Renamed Columns,
each ([ComputerName] = "")
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.