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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
sneidercub
Frequent Visitor

A way to display dataset error message

Hi everyone,

I was wondering if there is a way to show a label within a report when the dataset refresh failed?
sneidercub_0-1678455221461.png

sneidercub_1-1678455286244.png

When this happens the report usually just keeps showing the last data available, data for the last time the refresh was successfull.

Please help or let me know if there is a workaround to advise the users, something like: "Data refresh is currently unavailable"

 

1 ACCEPTED SOLUTION
R1k91
Super User
Super User

uhm... only idea I get is calling APIs I don't know if it works for your scenario but you could try...

I'm thinking to call the Power BI API to get refresh history for the dataset.

https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-history#completed-refresh-e...

 

keep in mind you can't call them natively at run time and using PQ in the same dataset refresh will only give you the history before the current refresh.

you could create another report that calls the apis for all the needed dataset and shows the result of these apis calls refreshing its dataset on-demand.

 

more experimental (I implemented this on a customer) calling APIs in realtime trough a caller like paginated reports.

https://medium.com/riccardo-perico/interactive-api-calls-from-power-bi-report-3e488ca8ffb6 

 


--
Riccardo Perico
BI Architect @ Lucient Italia | Microsoft MVP

Blog | GitHub

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

View solution in original post

4 REPLIES 4
R1k91
Super User
Super User

uhm... only idea I get is calling APIs I don't know if it works for your scenario but you could try...

I'm thinking to call the Power BI API to get refresh history for the dataset.

https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/get-refresh-history#completed-refresh-e...

 

keep in mind you can't call them natively at run time and using PQ in the same dataset refresh will only give you the history before the current refresh.

you could create another report that calls the apis for all the needed dataset and shows the result of these apis calls refreshing its dataset on-demand.

 

more experimental (I implemented this on a customer) calling APIs in realtime trough a caller like paginated reports.

https://medium.com/riccardo-perico/interactive-api-calls-from-power-bi-report-3e488ca8ffb6 

 


--
Riccardo Perico
BI Architect @ Lucient Italia | Microsoft MVP

Blog | GitHub

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

Thank you! I'll review this approach

R1k91
Super User
Super User

showing the last datetime refresh is not an option?


--
Riccardo Perico
BI Architect @ Lucient Italia | Microsoft MVP

Blog | GitHub

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

Hi, thank you for your answer,

In this report I'm already showing the last time the report was refreshed, but the customer also wants to see explicit if there is an error or the schedule refresh failed.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.