Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

When Image is not found show a sample text

Hi Team,

 

I have a Image URL in my report. When there is no image returned from this URL, how can i add some text to it.

 

For example, if i have to show employee photo, when there is no photo available for a particular employee, it should show the initials of his name.

 

 

  • Hi Anonymous ,

     

    For PowerBI Desktop, it is possible to insert a picture through a URL, but it is impossible to determine whether there is content in this url. Therefore, it is impossible to set the corresponding text for the pictures that cannot be loaded.

     

    If you have any doubts about inserting pictures, you can refer to the following blog, I hope this can help you.

     

    Best Regards,
    Henry

     

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

6 Replies

  • Anonymous , From where the url is coming. Dropbox or sharepoint, local, based on that there are different solutions

    • Anonymous's avatar
      Anonymous
      Not applicable

      amitchandak     Hi Amit,   its from our O365 or Azure AD

    • Anonymous's avatar
      Anonymous
      Not applicable

      amitchandak   Hi Amit,  The url is from Active Directory.   Would you mind sharing a solution to this please.

  • v-henryk-mstf's avatar
    v-henryk-mstf
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    For PowerBI Desktop, it is possible to insert a picture through a URL, but it is impossible to determine whether there is content in this url. Therefore, it is impossible to set the corresponding text for the pictures that cannot be loaded.

     

    If you have any doubts about inserting pictures, you can refer to the following blog, I hope this can help you.

     

    Best Regards,
    Henry

     

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

    • Anonymous's avatar
      Anonymous
      Not applicable

      v-henryk-mstf   Thanks Henry.  I will go through the blog.  

      • v-henryk-mstf's avatar
        v-henryk-mstf
        Icon for Community Support rankCommunity Support

        Hi Anonymous ,

         

        Do the above suggestions and the provided blog help you solve it? If it is solved, please mark the correct reply as the standard answer. If there are still doubts, please describe the detailed error message and I will answer you as soon as possible.


        Looking forward to your reply.😊

        Best Regards,
        Henry