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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
German_043
Frequent Visitor

Seleccionar una grafica

Buen día 

Esta realizando el siguiente codigo DAX para cambiar los valores de una grafica mediante un filtro 

OFI_Inventario = 
VAR ValoresSelecionador = COUNT(IDIOMAS[Idioma])
VAR Seleccion = SELECTEDVALUE(IDIOMAS[Idioma])
VAR METROS = SELECTEDVALUE(Oficinas_Latam[Inventario])
VAR SQF = SELECTEDVALUE(Oficinas_Latam[Inventary sqf])
Var Formato = 
IF(
    Seleccion = "ESP",
    METROS, SQF
)

return Formato

 

Hay alguna manera de referenciar una grafica mediente un funcion? Como en VBA o CSS al momento de referenciar el objeto 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @German_043 ,

In Power BI, you could use image link in the dax formula, like this: 

Measure = "https://th.bing.com/th/id/OIP.Gr7hcjTcqf6vnQBkv0kfbgHaFj?pid=ImgDet&rs=1"

But you need set the category for this measure:

vbinbinyumsft_0-1697682733451.png

 

You could also use SVG in Power BI, please refer below documents:

SVG in Power BI - Part 1 - Hat Full of Data,

Use SVG Images in Power BI: Part 1 - DataVeld,

How to use SVG images in PowerBi – Jese's Power Blog (wordpress.com)

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @German_043 ,

In Power BI, you could use image link in the dax formula, like this: 

Measure = "https://th.bing.com/th/id/OIP.Gr7hcjTcqf6vnQBkv0kfbgHaFj?pid=ImgDet&rs=1"

But you need set the category for this measure:

vbinbinyumsft_0-1697682733451.png

 

You could also use SVG in Power BI, please refer below documents:

SVG in Power BI - Part 1 - Hat Full of Data,

Use SVG Images in Power BI: Part 1 - DataVeld,

How to use SVG images in PowerBi – Jese's Power Blog (wordpress.com)

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

lbendlin
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot). Leave out anything not related to the issue.
If you are unsure how to do that please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.

If you want to get answers faster please refer to https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.