web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Adding some Power FX
Power Apps
Suggested Answer

Adding some Power FX

(1) ShareShare
ReportReport
Posted on by 6
I'm struggaling to add the below command to the creating a maintenance table for the School Maintenance Solution. What am I missing?
 
//
DateDiff('DateObserved',Now(),TimeUnit.Days)
Categories:
I have the same question (0)
  • Suggested answer
    AnthonyAmador Profile Picture
    2,553 Moderator on at
    Hi, 
     
    Unfortunately the Microsoft documentation is out of date, the function syntax is different now. 

    I recommend you to watch this video: https://www.youtube.com/watch?v=oJd7DDzZ5T4

    Let me know if that helps! 
    Anthony.
  • CU15081717-1 Profile Picture
    6 on at
    Hi,
     
    That was for power flow, I need the fx formula for the creation of a lookup on column, for the creation of the power app.
     
  • WarrenBelz Profile Picture
    153,079 Most Valuable Professional on at
    What exactly is DateObserved ? The formula is correct (although you can use Today() instead of Now() if there is no time factor involved)  if that is a Date Variable. If it is a field value, you may need ThisItem.DateObserved.
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard