cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
officeiq
Frequent Visitor

Using a relative date as a parameter in Paginated reports

I need to schedule exports of reports in excel/csv to external vendors and partners. These reports are sent at the beginning of each monthly with the prior month’s data as an excel sheet attachment to me.

 

I am using the Paginated Report feature along with the Subscription Service of Power BI Services. Currently, I am manually inserting the dates. Does anyone know a way I could set up these Paginated reports with a relative date as the parameter, say previous month; so they run automatically? This feature was available when I created similar output in Reporting Services 2012.

2 REPLIES 2
officeiq
Frequent Visitor

Thanks for the suggestion. That was one of my original "tries" - but it only will work if the previous month is 30 days and if I run it on the 1st of the next month 😯. I am looking for something that behaves like the Slicer Month (Calendar), but I will also look at the Expressions in Paginator that you mentioned - appreciate the advice.

Jon-Heide
Microsoft
Microsoft

You could try setting the value of the parameter to an expression. Something like: 

=DateTime.Now().AddDays(-30)

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power BI Dev Camp Session 27

Ted's Dev Camp

This session walks through creating a new Azure AD B2C tenant and configuring it with user flows and custom policies.