powerbi支持并使用二进制显示图像?

时间:2017-11-15 15:21:55

标签: image powerbi binary-data

我使用SQL中的查询来生成报告,并且我有一个用于图像的var二进制列。

使用GetData我将其拉入PowerBI,

我如何获得生成的图像?

我可以在PowerBI的查询编辑器中查看包含二进制代码的列

列名:图像

enter image description here

但是在查询编辑器

之外无法使用它

enter image description here

我需要启用一些设置才能使其正常工作,或者甚至可能吗?

以下是我用来提取数据的查询:

Select 
    prd.ShortCode                                       As 'Short Code'
,   st.CountryName                                      As 'Country'
,   st.Concept                                          As 'Partner'
,   prd.StyleDescription                                As 'Product Description'
,   prd.StockHoldingGroup                               As 'Stock Holding Group'
,   dept.DepartmentNumber                               As 'Department'
,   Sum(sls.SalesExVAT/sls.ExchangeRateEuro)            As 'Sales Ex VAT'
,   Sum(sls.SalesQuantity)                              As 'Sales Quantity'
,   Count(Distinct(sls.BranchNo))                       As 'No of Stores Sold'
,   img.SmallImage                                      As 'Image'


From
    euuksql01.dashboard.dbo.Calendar                cal

Inner Join
    euuksql01.dashboard.dbo.Sale                    sls
On  sls.DateID = cal.DateID

Inner Join
    euuksql01.dashboard.dbo.Product                 prd
On  prd.ProductID = sls.ProductID

Inner Join
    euuksql01.dashboard.dbo.Department              dept
On  dept.DeptID = prd.DepartmentID

Inner Join
    euuksql01.dashboard.dbo.DistrictStructure       st
On  sls.BranchNo = st.BranchNo

Inner Join
    euuksql01.dashboard.dbo.ProductImage                                img
On  img.ShortCode = prd.ShortCode

Where
    cal.FiscalYearWeek      = (Select FiscalYearWeek From euuksql01.dashboard.dbo.calendar where convert(date,getdate()-7) = FullDate)
And st.StoreType            = 'Concession'
And prd.StockHoldingGroup   Not In ('0441','0444','0445')
And dept.DepartmentNumber   Not In (31,32,50,51,52,53,54,55)

Group By
    prd.ShortCode
,   st.CountryName
,   st.Concept
,   prd.StyleDescription
,   prd.StockHoldingGroup
,   dept.DepartmentNumber
,   img.SmallImage  

1 个答案:

答案 0 :(得分:1)

不,Power BI不支持将二进制数据显示为图像。

目前仅支持显示image from URL / inserting image

您可以找到相关的想法建议here。 (由于单词binary ...)

,有很多垃圾评论