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 Automate / Testing Date expressions
Power Automate
Answered

Testing Date expressions

(0) ShareShare
ReportReport
Posted on by 78

New to Power BI and Power Automate (From SSRS) and have some questions if somebody could please help:

 

1. How can I test my expression outputs to see if they are valid/correct or not?

 

For example, I have a date expression in SSRS that is DateAdd("d",-1, today());. in SSRS I can clearly see when input that this gives midnight yesterday as the output. I'm thinking something like this formatDateTime(addDays(utcNow(),-1),'yyyy-mm-dd hh:mm:ss') but I have no idea if it returns what I need. 

 

 

drewbty_0-1668392486709.png

 

2. What's the best resource to learn how to format date queries in DAX? The Microsoft examples don't even cover the most basic practical examples. 

3. Does power automate use some variation of DAX that has less functionality? e.g. I can see now() as an option in DAX in PBI desktop, but only UTCNow() exists in power automate

 

Categories:
I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    1. You can place the expression in a Compose action and see the output in the flow run.

    SudeepGhatakNZ_1-1668398068697.png

     

    SudeepGhatakNZ_0-1668398022809.png

    2) All available expressions are accessible from the Expressions tab. You can create more complex expressions using additional actions (like regex, etc) or implement your own expression using a child flow.

     

     

     

     

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard