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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Takamani2022
Helper I
Helper I

selected value, switch

tengo el siguiente problema , cuando se selecciona la opicion de la segmentacion deberia mostrarme el porcentaje en el medidor. Pero me muestra el 100% cuando deberia mostrarme el porcentaje correcto. 

Takamani2022_0-1652100935683.png  

Takamani2022_1-1652100953223.png

he usado la funcion selected value, 

Captura_indicador = SELECTEDVALUE(Resultados[Sector homologado (data)], "Please Choose me")
y el switch que se muestra en la imagen.
 
algun consejo o algo para mejorar?

 

 

18 REPLIES 18
Takamani2022
Helper I
Helper I

@MFelix Le comparto en un drive

@Takamani2022 ,

 

How are you sharing can you send a private message with the link?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Takamani2022
Helper I
Helper I

@MFelix  sigue mostrando 100%, cuando deberia mostar que porcentaje representa del total

Takamani2022_0-1652290241612.png

 

@Takamani2022 

 

Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Takamani2022
Helper I
Helper I

@MFelix  agregue el codigo y no muestra sale blanco

Takamani2022
Helper I
Helper I

@MFelix  para el aluminio se ultiliso el calculate("Aluminio")

para que cuente con esa carateristica.

Hi  @Takamani2022 ,

 

Try the following code for the Encuestados

 

Encuestados= COUNTROWS(ALL(Resultado))

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Takamani2022
Helper I
Helper I

@MFelix lo que se encuentra dentro de los " " no tiene formula 

@Takamani2022 ,

 

Your measure is

%Aluminio =

var cantidad= [Aluminio]

var total= [Encuestados]
RETURN

divide(cantidad, total)

 

So the part of [Aluminio] how is it calculated?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Takamani2022
Helper I
Helper I

@NickolajJessen  el problema es , cuando se selecione cualquier nombre de la lista del segmentador se deba mostrar el porcentaje  y el nombre de la lista que fue seleccionada.

Puede crear un nuevo measure y lo pone encima el porcentaje?

NickolajJessen_0-1652274666291.png

 

Anonymous
Not applicable

@Takamani2022 
probó esto?

NickolajJessen
Solution Sage
Solution Sage

No entiendo por que hace tan complejo 🤔

Puede hacer algo como esto?

Disculeme por mi pobre español 😅

NickolajJessen_0-1652273244211.png

Sum of Value = SUM('Table'[Value])

Percentage of Total =
DIVIDE(
[Sum of Value],
CALCULATE([Sum of Value],REMOVEFILTERS('Table'[Sector])
))

 

Takamani2022
Helper I
Helper I

@MFelix 

La formula para  encuestados fueron asi :Encuestados= COUNTROWS(Resultado),

captura indicador = selected value Resultados[Sector homologado (datos)] "elija la opcion" )

 

Hi @Takamani2022 ,

 

And the one for ALUMINIUM?

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Takamani2022
Helper I
Helper I

@MFelix  los porcentajes lo calcule de esta forma

%Aluminio =

var cantidad= [Aluminio]

var total= [Encuestados]
RETURN

divide(cantidad, total)

Hi @Takamani2022 ,

 

What I can see is the this measure is also based on another two measures can you share the other two measures formula? Believe that your issues may be related with the Encuestados measure.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





MFelix
Super User
Super User

Hi @Takamani2022 ,

 

How are you calculating the percentages? Are they measures?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.