
Announcements
You're very close! Let’s address both parts of your question to help you dynamically filter and name your export using slicer values in Power BI and Power Automate.
To use the slicer value (e.g., Invoice Date) selected by the user in Power BI, you need to pass it as a parameter to Power Automate via the Power Automate visual.
Invoice Date field (from the slicer) into the Power Automate visual’s data pane.Replace:
'CSV_Credits'[Invoice Date] = EOMONTH(TODAY(),-1)
With'CSV_Credits'[Invoice Date] = DATEVALUE(@InvoiceDate)
Where @InvoiceDate is the parameter passed from Power BI.
⚠️ Make sure the date format matches what Power BI sends (usually ISO format like
yyyy-mm-dd).
To name the file using the selected Invoice Date:
formatDateTime(triggerOutputs()?['body/InvoiceDate'], 'yyyy-MM')
Use this output in the “Create file” action’s file nameCSV_Credits_@{outputs('Compose')}.csv
If your slicer allows multiple dates, consider using:
MIN(InvoiceDate) or MAX(InvoiceDate) in Power BI