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 / Error in formula: Text...
Power Apps
Answered

Error in formula: Text(Today() Try and revise it

(0) ShareShare
ReportReport
Posted on by 25

When creating a data card. I keep getting an error in the formula for the Text(Today(), "yyyymmdd"). It states that there is an error in the formula. Try and revise it.  Am I missing something that would correct this issues? I really appreciate any assistance.

Categories:
I have the same question (0)
  • TheRobRush Profile Picture
    11,128 Moderator on at

    I mean, that formula is correct, to provide a string that looks like a date. What kind of column is connected to that data card? if its just a text column the error is not in the provided code but elsewhere

  • MrsDunlap Profile Picture
    25 on at

    Here is a screenshot of the error. I don't know what I have done wrong.

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Can you use Snipping tool to screengrab that entire line of code and then paste it into the forum response and then click the expand square below it to make usre it is full size? however you shared that its become so artifacty/pixelated that its not legible anymore

     

    TheRobRush_1-1684257868800.png

     

     

  • MrsDunlap Profile Picture
    25 on at

    Here is the whole formula: With({lclRecs:Filter(TimeTracker, Title=glbUser && StartsWith(ActivityDateTime, Text(Today(), "yyyymmdd")

     

  • TheRobRush Profile Picture
    11,128 Moderator on at
    With({lclRecs:Filter(TimeTracker, Title=glbUser && StartsWith(ActivityDateTime, Text(Today(), "yyyymmdd")))})

     

    missing closing parentheses brackets etc

  • MrsDunlap Profile Picture
    25 on at

    Still not working.

  • Verified answer
    TheRobRush Profile Picture
    11,128 Moderator on at

    None of your screenshots have the closing brackets or parentheses in them so it still looks like it isn't working (in the example you shared) because it is an incomplete formula.

    We should also ask exactly what you are trying to accomplish. as in a With the {} is uaully onyl half of the formula as you can see here

     

    If you are not using it in this way, there may be easier ways to do what you need to do

  • Verified answer
    MrsDunlap Profile Picture
    25 on at

    Thank you so much. Had I finished the video, the error corrected itself. Here was the whole formula:

    With({lclRecs:Filter(TimeTracker, Title=glbUser && StartsWith(ActivityDateTime, Text(Today(), "yyymmdd")))},

    {
    LogOn: LookUp(lclRecs, ActivityType="Log On", ActivityDate),
    LeaveOut: LookUp(lclRecs, ActivityType="Leave Out", ActivityDate),
    LeaveIn: LookUp(lclRecs, ActivityType="Leave In", ActivityDate),
    LogOff: LookUp(lclRecs, ActivityType="Log Off", ActivityDate)
    }
    )

  • TheRobRush Profile Picture
    11,128 Moderator on at

    Huzzah!

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard