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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors