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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
ppl
Frequent Visitor

display attachments from SharePoint list in PowerBI report table

Hello.
I want to display attachments(photos) from my SP list in my report.

It will be Table visual element.

But there is only True or False value in attachments column:

ppl_0-1632435066773.png

 

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @ppl  

 

After my test, The URL of the picture added to 'attachment' will not be displayed in the pbi, it can only detect whether there is content, just like true and false you see. But if you add image type, there will be one text column 

to show the image url, and you need to separate the text and then reorganize the complete url, and change the data category of this column to image url in pbi, then publish it to pbi service,the images can be shown.

vjaneygmsft_1-1632819505331.png

PQ steps: you need to split column and create a custom column to combine the part of serverurl and serverrelativeurl to a whole image url.

let
    Source = SharePoint.Tables("https://xxxxxxxxxxx.com/", [Implementation=null, ApiVersion=15]),
    #"cc275f95-925d-48d4-bd10-bc8baae49d8d" = Source{[Id="cc275f95-925d-48d4-bd10-bc8baae49d8d"]}[Items],
    #"Split Column by Delimiter" = Table.SplitColumn(#"cc275f95-925d-48d4-bd10-bc8baae49d8d", "test1", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), {"test1.1", "test1.2", "test1.3", "test1.4", "test1.5", "test1.6", "test1.7"}),
    #"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"test1.1", type text}, {"test1.2", type text}, {"test1.3", type text}, {"test1.4", type text}, {"test1.5", type text}, {"test1.6", type text}, {"test1.7", type text}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"ID", "ID.1"}}),
    #"Split Column by Delimiter1" = Table.SplitColumn(#"Renamed Columns", "test1.5", Splitter.SplitTextByEachDelimiter({":"}, QuoteStyle.Csv, false), {"test1.5.1", "test1.5.2"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter1",{{"test1.5.1", type text}, {"test1.5.2", type text}}),
    #"Split Column by Delimiter2" = Table.SplitColumn(#"Changed Type1", "test1.6", Splitter.SplitTextByEachDelimiter({":"}, QuoteStyle.Csv, false), {"test1.6.1", "test1.6.2"}),
    #"Changed Type2" = Table.TransformColumnTypes(#"Split Column by Delimiter2",{{"test1.6.1", type text}, {"test1.6.2", type text}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type2", "Custom", each [test1.5.2]&[test1.6.2])
in
    #"Added Custom"

vjaneygmsft_4-1632820326827.png

vjaneygmsft_5-1632820545836.png

Desktop:

vjaneygmsft_3-1632820149133.png

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,

Community Support Team _ Janey

 

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @ppl  

 

After my test, The URL of the picture added to 'attachment' will not be displayed in the pbi, it can only detect whether there is content, just like true and false you see. But if you add image type, there will be one text column 

to show the image url, and you need to separate the text and then reorganize the complete url, and change the data category of this column to image url in pbi, then publish it to pbi service,the images can be shown.

vjaneygmsft_1-1632819505331.png

PQ steps: you need to split column and create a custom column to combine the part of serverurl and serverrelativeurl to a whole image url.

let
    Source = SharePoint.Tables("https://xxxxxxxxxxx.com/", [Implementation=null, ApiVersion=15]),
    #"cc275f95-925d-48d4-bd10-bc8baae49d8d" = Source{[Id="cc275f95-925d-48d4-bd10-bc8baae49d8d"]}[Items],
    #"Split Column by Delimiter" = Table.SplitColumn(#"cc275f95-925d-48d4-bd10-bc8baae49d8d", "test1", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), {"test1.1", "test1.2", "test1.3", "test1.4", "test1.5", "test1.6", "test1.7"}),
    #"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"test1.1", type text}, {"test1.2", type text}, {"test1.3", type text}, {"test1.4", type text}, {"test1.5", type text}, {"test1.6", type text}, {"test1.7", type text}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"ID", "ID.1"}}),
    #"Split Column by Delimiter1" = Table.SplitColumn(#"Renamed Columns", "test1.5", Splitter.SplitTextByEachDelimiter({":"}, QuoteStyle.Csv, false), {"test1.5.1", "test1.5.2"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter1",{{"test1.5.1", type text}, {"test1.5.2", type text}}),
    #"Split Column by Delimiter2" = Table.SplitColumn(#"Changed Type1", "test1.6", Splitter.SplitTextByEachDelimiter({":"}, QuoteStyle.Csv, false), {"test1.6.1", "test1.6.2"}),
    #"Changed Type2" = Table.TransformColumnTypes(#"Split Column by Delimiter2",{{"test1.6.1", type text}, {"test1.6.2", type text}}),
    #"Added Custom" = Table.AddColumn(#"Changed Type2", "Custom", each [test1.5.2]&[test1.6.2])
in
    #"Added Custom"

vjaneygmsft_4-1632820326827.png

vjaneygmsft_5-1632820545836.png

Desktop:

vjaneygmsft_3-1632820149133.png

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,

Community Support Team _ Janey

 

VahidDM
Super User
Super User

Hi @ppl 

 

Check this link:

https://docs.microsoft.com/en-us/power-bi/create-reports/power-bi-images-tables

 

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

Appreciate your Kudos✌️!!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.