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

Community site session details

Session Id : MQSJ5LHiykOHQTzOVX5+pH
Power Automate - Building Flows
Answered

Testing Date expressions

Like (0) ShareShare
ReportReport
Posted on 14 Nov 2022 02:26:41 by 74

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

 

I have the same question (0)
  • Verified answer
    SudeepGhatakNZ Profile Picture
    14,381 Most Valuable Professional on 14 Nov 2022 at 03:56:55
    Re: Testing Date expressions

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 725 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 363 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 341

Last 30 days Overall leaderboard