Forum Discussion
Adding a loading icon when filter/action is running
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.
- Prateek972 years agoResolver III
Hi kouter ,
Wanted to check if it worked for you? Because I am not able to detect when the visual is loading and the count of data measure still shows greater than 0 while it is loading.
MAwwad Were you able to implement the solution that you provided?
Any help will be appreciated.
- aldoberain2 years agoNew Member
Hi Prateek97 ,
were you able to get it done? I am soon to start working on it but just wondering if you were able to do it and what was the approach you made in order to find the solution.- Prateek972 years agoResolver III
Hi aldoberain ,
Unfortunately no. After browsing through various options, I came to the conclusion that it is not possible.
Let me know if it works out for you.