Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
i have a Odata API Call where i want to get only the last 30 days based on the Date Column "lastSeen", GT stand for "greater than".
The API CAll is:
"https://api.securitycenter.microsoft.com/api/machines?$select= id, computerDnsName$filter=lastSeen Gt 30DaysAgoDate"
The 30DaysAgoDate Value is dynamic. I use M-Code and it works on Power BI Desktop.
filter=lastSeen Gt "& (Date.ToText(Date.AddDays(Date.From(DateTime.FixedLocalNow()), -31), "yyyy-MM-dd")
But it is a Dynamic Data Source and i can not turn on the scheduler,
when i publish the report.
If i would use filter=lastSeen Gt 2022-03-03, i wouldn´t get the error.,
but this is not dynmaic.
How can i get dynamic "last 30 days" and setting up ther scheduler in pbi online?
Thanks for your help.
Hi @Anonymous ,
Has your problem been solved, if so, please consider Accept a correct reply as the solution or share your own solution to help others find it.
Best Regards
Lucien
Hi @Anonymous ,
this blogpost consolidates all relevant info about dynamic datasources: http://blog.datainspirations.com/2018/02/17/dynamic-web-contents-and-power-bi-refresh-errors/
Similar error code question refer:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
59 | |
32 | |
27 | |
24 | |
23 |
User | Count |
---|---|
63 | |
51 | |
33 | |
24 | |
20 |