Forum Discussion
Dynamic file name using paginated report
Hi,
I wanna create paginated excel file name dynamically like below title:
I created dynamic name code as below but is it available to have 0000 ea as per its data?
7 Replies
- rajendraongole1Super User
Hi Anonymous -Your dynamic filename formula is correctly generating a name based on the current year and week number, but you want to include "0000 ea" dynamically based on the number of records in your dataset.
eg:
concat(
'NDPd SMP Creation_',
formatDateTime(convertFromUtc(utcNow(),'Korea Standard Time'),'yyyy'),
'_W',
formatNumber(
add(div(dayOfYear(convertFromUtc(utcNow(),'Korea Standard Time')),7),1),
'00'
),
'_',
formatNumber(length(yourDataset), '0000'), // Count of rows with zero padding
' ea.xlsx'
)Hope this helps.
- AnonymousNot applicable
Yes correct, let me try with your suggestion.
By the way, '0000' is flexible to carry any digit of numbers? not only 4 digits? e.g. 9, 999, 999999, etc
- AnonymousNot applicable
it says invalid.
and what is this part for?
'// Count of rows with zero padding'- AnonymousNot applicable
It seems I need to put my dataset in the code right?
what dataset would that be?
it has filter in paginated report.
- AnonymousNot applicable
Count doesn't match..
- v-veshwara-msftCommunity Support
Hi Anonymous ,
Thanks for engaging with the Microsoft Fabric Community.
Just checking in to see if your issue has been resolved.If not, since your query involves automating file naming and calculating row counts using Power Automate expressions, we recommend posting it in the Power Automate Community for more targeted support and better visibility.
Hope this helps.
Regards,
Vinay.