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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Bassil74
Helper I
Helper I

refresh only part of API data i.e. recent year, and refresh previous years based on request

I have an API with a year parameter, such as ending with /Summary?year=2024. Therefore, my Power BI dashboard will need to fetch data for multiple years like:

```M
Years= Table.FromList({"2018","2019","2020","2021","2022","2023","2024"},null,{"Years"}),
GetData = (Years as text) => Json.Document(Web.Contents(Service&"/Summary?"& Years))[data],
Output = Table.AddColumn(Years, "Output", each GetData([Years])),
```

However, data for years before 2024 won't change. How can I control the refresh to fetch data for 2024 every time I click the refresh button, but for years 2018-2023, it only refreshes as needed and doesn't automatically force refresh when the refresh button is pressed.

 

Thanks

2 REPLIES 2
lbendlin
Super User
Super User

Stuff the historical data into a dataflow or a CSV/Parquet file and consume it from there.

Yes, that solution will suffice if I'm the sole user but since the file will be shared publicly i need a more robust mechanism that allow for differentiate data related to certain year so it won't refresh, but only refresh partial data, but thank you in anyway for proposing the above.   

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors