Forum Discussion
Adding a loading icon when filter/action is running
Hi there,
I have a report with a map, and when I select a filter the map takes some time to load.
Is it possible to add a icon/visual to say loading whenever an action is being run i.e. filter selection being applied, and then dissapears again when the action is completed in Power BI?
Your help is much appreciated. Thank you.
8 Replies
- MAwwadSolution Sage
Yes, it is possible to add a loading icon/visual to indicate that a filter or action is being run in Power BI. Here are the steps:
Add an image to your report that will serve as the loading icon. You can use any image that you like, but it should be a transparent PNG file with a size of 32x32 or 64x64 pixels.
Create a measure that will toggle the visibility of the loading icon based on the state of the filter or action. For example, you might use a measure that calculates the number of rows in the data table that are currently visible based on the filter selection. If the number of rows is greater than 0, the measure would return 0 (false) to hide the loading icon. If the number of rows is 0, the measure would return 1 (true) to show the loading icon.
Add a new visual to your report, such as a shape or card. Set the background color of the visual to be transparent, and set the value of the visual to be the measure that you created in step 2.
Add the loading icon image to the visual that you created in step 3. Set the visibility of the image to be based on the value of the measure, so that the image is only visible when the measure returns a value of 1.
Finally, position the visual containing the loading icon over the map visual, so that it covers the map when the icon is visible.
When a filter or action is applied that causes the map to take some time to load, the loading icon will be displayed to indicate that the action is being processed. Once the map has finished loading, the icon will disappear.
- kouterAdvocate I
- Prateek97Resolver III
- TPoornimaRegular Visitor
It would be greatly appreciated if you could provide a sample file that implements the above scenario.
- datawillconfessRegular Visitor
sample file?