Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Desenvolvi uma dashboard e publiquei ela mas ao publicar, as imagens não estão apresentando.
As importações estão no modo DirectQuery.
No editor, as imagens apresentam corretamente:
Mas após publicar ele apresenta da seguinte maneira:
Para apresentar as imagens estou usando o visual "Image by CloudScope (2.0.5)"
Estou colocando a URL em uma medida e colocando a medida no visual, segue código da medida:
Erro que aparece no visual:
Solved! Go to Solution.
I was able to display the image. The error was actually in the visual I was using. To display the image, I did the following:
I am pulling the image from the database and converting it from binary to an image in Power BI using the function I developed, which I mentioned in previous comments.
I changed the visual and I am using "Simple Image". It has a particularity where it doesn't accept measures as a value in the "Image URL" field.
To use "Simple Image", I added a new column to the image table with the following M code:
let
Tabela = #"INDICADORES_VENDAGER",
SomaAtual = List.Sum(Tabela[QTDFATURADOS]),
SomaPassado = List.Sum(Tabela[QTDFATURADOSPASSADO]),
ColTeste = if SomaAtual > SomaPassado then [TrianguloVerdeCima] else [TrianguloVermelhoBaixo]
in
ColTeste
With this code, I am always passing the URL of the desired image according to the condition I had set in the DAX code.
After creating the column, I added it to the "Simple Image" visual and it worked after publishing!
Thank you for your help!
You can use icons or embedded images for this. No need to call external URLs and wake up the dataset privacy police.
I tried to use embedded images but doesn't work.
I changed the DAX code of the measure to the following:
After publishing the report online:
I was able to display the image. The error was actually in the visual I was using. To display the image, I did the following:
I am pulling the image from the database and converting it from binary to an image in Power BI using the function I developed, which I mentioned in previous comments.
I changed the visual and I am using "Simple Image". It has a particularity where it doesn't accept measures as a value in the "Image URL" field.
To use "Simple Image", I added a new column to the image table with the following M code:
let
Tabela = #"INDICADORES_VENDAGER",
SomaAtual = List.Sum(Tabela[QTDFATURADOS]),
SomaPassado = List.Sum(Tabela[QTDFATURADOSPASSADO]),
ColTeste = if SomaAtual > SomaPassado then [TrianguloVerdeCima] else [TrianguloVermelhoBaixo]
in
ColTeste
With this code, I am always passing the URL of the desired image according to the condition I had set in the DAX code.
After creating the column, I added it to the "Simple Image" visual and it worked after publishing!
Thank you for your help!
I stored the image according to the link you sent, but the same error persisted. I believe the issue may be with the visualization, as I displayed the image in a table and it appeared correctly. I will try changing to a different visualization.
User | Count |
---|---|
77 | |
77 | |
68 | |
67 | |
49 |
User | Count |
---|---|
108 | |
105 | |
93 | |
83 | |
64 |