Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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!
Solved! Go to Solution.
Hi @Ltbabyj ,
Please try:
VAR __DS0FilterTable =
FILTER(
KEEPFILTERS(VALUES('DailyLogManpower'[created_at])),
AND(
'DailyLogManpower'[created_at] >= (UTCNOW() - 1) , 'DailyLogManpower'[created_at] <= UTCNOW()
)
)
You can decide which function to use based on the results returned by measure in the demo.
TODAY function (DAX) - DAX | Microsoft Learn
UTCNOW function (DAX) - DAX | Microsoft Learn
UTCTODAY function (DAX) - DAX | Microsoft Learn
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Thank you!
Hi @Ltbabyj ,
Please try:
VAR __DS0FilterTable =
FILTER(
KEEPFILTERS(VALUES('DailyLogManpower'[created_at])),
AND(
'DailyLogManpower'[created_at] >= (UTCNOW() - 1) , 'DailyLogManpower'[created_at] <= UTCNOW()
)
)
You can decide which function to use based on the results returned by measure in the demo.
TODAY function (DAX) - DAX | Microsoft Learn
UTCNOW function (DAX) - DAX | Microsoft Learn
UTCTODAY function (DAX) - DAX | Microsoft Learn
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum -- China Power BI User Group
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
41 | |
23 | |
21 | |
21 | |
13 |