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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
frankvb
Helper II
Helper II

How to generate error-message if nothing found in report by using query string parameters in URL

Hi,

 

The set-up

I have two separate reports. It is possible to jump to the corresponding data between the reports using buttons that are present in both reports.

These buttons have url's using a filtered value in the report, as a query string parameter: https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-url-filters

 

The problem

Sometimes however, report A does not have the corresponding value in report B. So after clicking the button you land in an empty report.

Now my end-users would like to have an error-message when this happens, but how can I do this, without adding any of the data from the dataset of report A to the dataset of report B?

I cannot add the missing data from report B to the data of report A (not even just the keys, or guids or anything like that).

 

 

1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

Hi @frankvb - you can implement a solution that provides user feedback without merging datasets.

Design an error page within Report B that is shown when there is no data available.

Dynamic Visibility: In Report B, use a measure that checks if the relevant data exists based on the filter applied from Report A. If no data exists, display the error message. This could be done using a card visual or a text box that shows a message like "No data available for the selected criteria."

When creating the URL in Report A, you could add an additional query string parameter that indicates a "check" for data existence.

Check Parameter: In Report B, use this parameter to determine whether to display the error message. For instance, if the parameter is "check=true" and no corresponding data is found, show the error message.

 

If you embed the reports in an application, you can manage the navigation logic from the host application. Check for data presence in Report B before allowing the navigation to that report.you can create a better user experience without merging datasets. The key is to use DAX measures and conditional formatting in Report B to inform users when no corresponding data exists.

 

 

 

 





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

Proud to be a Super User!





View solution in original post

2 REPLIES 2
frankvb
Helper II
Helper II

This would solve it indeed, but it requires something that makes the whole thing obsolete: merging data from A to B (or the other way around). In order to make the column that can be used to filter (whether or not the data is present in the other dataset), you need to merge both datasets. How else can I tell my query string parameter that there is no data with this filter in the other report?

rajendraongole1
Super User
Super User

Hi @frankvb - you can implement a solution that provides user feedback without merging datasets.

Design an error page within Report B that is shown when there is no data available.

Dynamic Visibility: In Report B, use a measure that checks if the relevant data exists based on the filter applied from Report A. If no data exists, display the error message. This could be done using a card visual or a text box that shows a message like "No data available for the selected criteria."

When creating the URL in Report A, you could add an additional query string parameter that indicates a "check" for data existence.

Check Parameter: In Report B, use this parameter to determine whether to display the error message. For instance, if the parameter is "check=true" and no corresponding data is found, show the error message.

 

If you embed the reports in an application, you can manage the navigation logic from the host application. Check for data presence in Report B before allowing the navigation to that report.you can create a better user experience without merging datasets. The key is to use DAX measures and conditional formatting in Report B to inform users when no corresponding data exists.

 

 

 

 





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

Proud to be a Super User!





Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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