Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • luisep Profile Picture
    105 on at
    Re: Error when copy IF function result in datacardvalue

    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")

  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at
    Re: Error when copy IF function result in datacardvalue

    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
    Re: Error when copy IF function result in datacardvalue

    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
    Re: Error when copy IF function result in datacardvalue

    Hi @luisep ,

     

    Please explain the default formula used in below controls. 

     

    Label 1

    Label 2

    Datacardvalue1

    Datacardvalue2 

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1