I have a Power App connected to a Sharepoint form and am having issues with the correct fields populating when the date range is selected. The team enters a date range and then fields become enabled depending on this range. Ex. If my Start Date was January 1,2023 to June 30,2023 I would expect January - June Fields to become enabled. However, right now June - December become enabled instead. Below is the formula being used when I select the January card. Any help is appreciated!
//Parent.DisplayMode
If(DataCardValue10.Selected.Value="Variable Monthly Savings (Enter Quantity)" ,
If(DateDiff(DataCardValue6.SelectedDate,DataCardValue7.SelectedDate, TimeUnit.Months) >= 0,DisplayMode.Edit, DisplayMode.Disabled), DisplayMode.Disabled)