Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SSWADOOD
Helper I
Helper I

Subscribe a report on last day of the month

Hello, 

 

i am currently working on paginated reports, one the reports need to be shared with users on the last day of the month 

as some months have 31 days some have 30 days,

 

can it done by creating a single subscribtion or should i create two seperate subscribtions one for months with 30 days and other for months with 31days.

 

 

Thanks and Regards

 

3 REPLIES 3
v-henryk-mstf
Community Support
Community Support

Hi @SSWADOOD ,

 

It seems that for now, Power Bi does not have the option of "last day of the month".

vhenrykmstf_0-1653386169099.png

But there is an alternative that is a workaround: an option to run the subscription on the first day of the month that defaults the report to the previous month. To make this an option, you need: 1. the data parameters in the report and 2a. the report already defaults to last month or 2b. a SQL Server version that supports data-driven subscriptions to override the default parameters to last month.

For more details, you can read this blog:

Report Manager Subscription Last Day of Month – The Data Queen (unlimitedviz.com)


If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi Henry thanks for the message, i will test this on the report.....

for now i had created 3 subscriptions

first one for 28 days of  Feb

second one for months with 30 days

third one for months with 31 days

 

i will probably shift to single subscription option via SSMS.

 

sevenhills
Super User
Super User

  1. on the 30th day of April, June, September & November
  2. on the 31st day of January, March, May, July, August, October & December
  3. on the 28th day of February

    Not sure you want to create one more for leap year 😉

 

There are other ways like Power Automate, data driven

https://debajmecrm.com/how-to-get-last-day-of-current-month-in-power-automate/

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.