Forum Discussion

Ltbabyj's avatar
Ltbabyj
Frequent Visitor
2 years ago
Solved

Power Automate email with Power BI data - need today's date (instead of report filter)

Hi all - I am a newbie to Power BI and certainly to Power Automate.  I have followed a couple of great YouTube videos on creating scheduled emails linking my Power BI reports however, I believe (but tell me if I'm wrong) that the Dax Query that I copied includes the filtered date and appears to be the reason why the data set is not refreshing with the scheduled emaill.  The Power BI report is functioning correctly which is to only pull the most recent 24 hours of data.  See below the Dax query.  

 

// DAX Query

DEFINE

VAR __DS0FilterTable =

FILTER(

KEEPFILTERS(VALUES('DailyLogManpower'[created_at])),

AND(

'DailyLogManpower'[created_at] >= (DATE(2024, 2, 1) + TIME(18, 57, 26)),

'DailyLogManpower'[created_at] <= (DATE(2024, 2, 2) + TIME(18, 57, 26))

)

)

 

 

I created this scheduled email on Friday (2/2).  Is there any way to replace the date shown above with a Dax coding for today()?

Thank you!

 

2 Replies