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 / Date only calculated f...
Power Apps
Suggested Answer

Date only calculated field result type not working

(0) ShareShare
ReportReport
Posted on by 711
Hi,
 
I have a datetimefield in a dataverse table and in my App I want to filter for that field on a specific whole date. So I make a calculated field based on thet datetimefield just resulting in it's value but in a date only format. It is not working and if I inspect the vale for the calculated field for a spec record I get
1/28/2022 1:32 PM, which seems like a datetime value in stead of date only.
If I filter for datefield>condtiondate And datefield<DateAdd(condtiondate,1) I get enormous delays and in de monitor I see many bad requests (strangly this worked quickly before in a previous version of the app) . The result is as expected but the delay is unacceptable for users.
>Edit also using the Text Or Round functions are forbidden for datevalues in formula fields. 
 
How can I address this?
Categories:
I have the same question (0)
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
     
    I don't think you need to create a separate calculated column to filter the data by date using a datetime column in Dataverse. 
     
    Lets assume you are selecting the date using a DatePicker and want filter the data for that particular date. Here's how you can do it - 
    With(
        {Records: DVTable},
        Filter(
            Records,
            DateValue(datefield) = DatePicker1.SelectedDate
        )
    )
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
  • ronaldwalcott Profile Picture
    3,906 Moderator on at
    Depending on the number of records in your table you may also have to consider changing your data design and creating a column to contain the indexed date value.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

#2
11manish Profile Picture

11manish 210

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard