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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error when copy IF fun...
Power Apps
Unanswered

Error when copy IF function result in datacardvalue

(0) ShareShare
ReportReport
Posted on by 105

Hi,

I'm trying to copy the result of a IF function result.

 

My scenario:

 

Gallery1 - Label1
Form1 - Datacardvalue1

 

Label2 (outside Galley1 and Form1): If (Label1.Text = Datacardvalue1.Text; "Yes";"Updates")

 

My problem is when I try to copy the result of Label2 in Datacardvalue2 a circular reference error appear. Same if a put "

If (Label1.Text = Datacardvalue1.Text; "Yes";"Updates")" in Datacardvalue1.

 

Is there any way to convert Label2 (boolean) to Text? Or to solve this circular reference directly in Datacardvalue1?

 

Thanks,

Categories:
I have the same question (0)
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @luisep ,

     

    Please explain the default formula used in below controls. 

     

    Label 1

    Label 2

    Datacardvalue1

    Datacardvalue2 

  • luisep Profile Picture
    105 on at

    Hi @PriyankaGeethik,

     

    These are default formulas I've used:

    Gallery1: Items: SPlist1

    Label 1: ThisItem.Description

     

    Form1: Items: SPlist2

    Datacardvalue1: Thisitem.Description

    Datacardvalue2: If(Label1.Text = Datacardvalue1.Text; "Yes";"Updated")

     

    Label 2: If(Label1.Text = Datacardvalue1.Text; "Yes";"Updated")

     

    Thanks,

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @luisep ,

     

    Not sure if I understood it correctly or not. 

    From the formula you used above something like below might work in your case. 

    If Label 2 is inside gallery : If(Thisitem.Description=Gallery.Selected.Description; "Yes";"Updated")

     

     

    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.

  • luisep Profile Picture
    105 on at

    Hi @PriyankaGeethik ,

    I'll try to explain it in more detail:

     

    Gallery1: Items: Filter(SPlist1,Reference=Datacardvalue1)

    Label1: ThisItem.Reference

    Label2: ThisItem.Description

     

    Form1: Items: SPlist2

    Datacardvalue1: ThisItem.Reference

    Datacardvalue2: ThisItem.Description

    Datacardvalue3: If(Label1.Text = Datacardvalue1.Text,'Yes','Updated')

     

    Error in Datacardvalue3: circular reference.

     

    Thanks,

     

    Label 2: If(Label1.Text = Datacardvalue1.Text; "Yes";"Updated")

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard