Showing results for 
Search instead for 
Did you mean: 
New Member

Circular reference Between Properties

Hi all 


I'm very new to poweapps and trying to find my way around by programming very basic app. My first task is to develop a leave estimator to assist staff to determine if they have enough leave balance for a proposed leave date. There is no data source link to this app and everything is calculated based on user's input i.e. current leave balance, proposed leave date etc.. In the future we would expand this out to pull out leave balance data from a data source. 


Anyhoo I'm trying to get the following command to return the DateDiff in Text


Label13.Text = Text(DateDiff(DatePicker1.SelectedDate,DatePicker2.SelectedDate))


However the system throws out the "This rule creates a curcular reference between properties which is not allowed. A property cannnot reference itself or other properties affected by its value. " 


How do i fix this? Or is there a worksround it. 


Thanks in advance



Yes using a variable also worked for me. 

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,650)