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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
mcantos
Helper II
Helper II

Dinamyc parameter send to filter data

Hello 

I have a request from a client who wants us to save the date the report was generated and then use it as a parameter for the next report execution to display the data that was updated before it. They want to remark on the newest data in the report. 

 

Do you have any suggestions that come close to this?

 

Thank you! 

2 REPLIES 2
v-tejrama
Community Support
Community Support

Hi @mcantos.,

Thanks for reaching out to the Microsoft fabric community forum.

 

To highlight newly added rows based on the last report refresh, a parameter is created in Power Query called LastRefreshDate and converted into a one-row table using:


=#table({"LastRefresh"}, {{LastRefreshDate}})


It's important to set the column data type to Date/Time to avoid type mismatch errors in DAX.

In the main data table, a calculated column can be added using:

 

Here is the DAX :

Status =
VAR LastRefresh = MAX(LastRefreshTable[LastRefresh])
RETURN IF(SalesData[ModifiedDate] > LastRefresh, "New", "Old")

 

This allows the report to dynamically flag which rows are new based on the refresh date, making it easier to track recently updated data.

 

Please find the attached pbix file for your reference.

 

If the response has addressed your query, please Accept it as a solution and give a 'Kudos' so other members can easily find it.


Best Regards,
Tejaswi.
Community Support

danextian
Super User
Super User

Hi @mcantos 

 

Power BI does not store a historical copy of the data. What gets loaded into the model upon refresh is based on the latest available data. That is true even if you don't enable the load for a  query.  The historical data, thus, must exist somewhere.  You can run a query  against a dataset using Power Automate that generates a summary of the data or whatever kpis you want to track and automatically save that as a csv file in sharepoint folder and then use that folder as a data source. Please refer to this https://www.matthewdevaney.com/power-automate-run-a-query-against-a-power-bi-dataset/ 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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