Hi,
I have 2 column fields on my "Date" Dataverse Table in Model Driven Power Apps. The fields are "From Date" and "To Date".
I wanted to ensure that while creating a record, my "From Date" and "To Date", should not lie in same calendar months.
To ensure this, i created a Calculated column named "DateDiff" using Formula and the formula is DateDiff('From Date', 'To Date', TimeUnit.Months).
The formula is running fine and giving me correct values, but it is not triggering on my Business Rule, in which i mention that:
If DateDiff filed is greater than zero, the show error message at "To Field".
After having multiple runs, i came to conclusion that since DateDiff is a calculated column, which triggers only after "From Date" and "To Date" fields are filled in and saved, the "Business Rule" is not getting triggered.
Please let me know possible way around?