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
Marc_Real
Frequent Visitor

Buenas tardes, quisiera realizar una consulta acerca de totalizar porcentajes

Buenas tardes, me podrian ayudar, tengo un inconveniente, estoy utilizando un objeto visual (tarjeta) como menu desplegable, el cual contiene meses, desde enero a julio, cuando selecciono por mes los porcentajes mensuales son correctos, pero al seleccionar todo a trave del menu desplegable el porcentaje total es incorrecto, que formula tendria que utilizar o que opcion deberia de manejar para que al seleccionar la opcion seleccionar todos el porcentaje sea correcto.

 

Marc_Real_1-1757020271450.png

Marc_Real_2-1757020289918.png

Lo porcentajes totales correctos que deberian de mostrarse son estos:

Marc_Real_3-1757020589893.png

 

1 ACCEPTED SOLUTION

Buen dia, gracias a su ayuda ahora se muestran todo los porcentajes en forma correcta.

 

Muy agradecido

View solution in original post

15 REPLIES 15
v-echaithra
Community Support
Community Support

Hi @Marc_Real ,

 

May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

Thank you.

Hola Buenas tardes

 

Me podrias ayudar, tengo una serie de datosn de los cuales solo quiero que una cenda me muestre un numero entero, los demas en %

Marc_Real_0-1775596500227.png

Solo la fila de los datos subrayados con rojo deseo que sean numeros enteros, los demas en porcentajes.

 

Agradecido

 

 

Hi @Marc_Real ,

In Power BI, formatting is applied at the measure level, not at the individual row level. However, you can achieve different formats within the same column by using a workaround with a dynamic measure, where the specific row is identified using a column such as INDICADORES.

For a more robust and production-ready solution, it is recommended to use Dynamic Format Strings (available in the latest versions of Power BI Desktop or via Tabular Editor).

Keep your original measure as a numeric value
Go to Model view
Select the measure
Under Format > fx (Dynamic format string), apply the following:

SWITCH(
TRUE(),
SELECTEDVALUE('YourTable'[INDICADORES]) = "CI-OC01 Oportunidad del Envรญo de Informaciรณn Prestacional al SIS",
"0",
"0.00%"
)

Values remain numeric, sorting works correctly and aggregations behave as expected. This approach ensures flexibility in formatting without compromising data integrity or performance.

Thank you.

v-echaithra
Community Support
Community Support

Hi @Marc_Real ,

Weโ€™d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

Best Regards,
Chaithra E.

Buen dia, gracias a su ayuda ahora se muestran todo los porcentajes en forma correcta.

 

Muy agradecido

Hi @Marc_Real ,

Thank you for confirming that your issue has been resolved. If you have any further questions or need additional assistance, feel free to reach out. We're here to help! Please don't hesitate to post again if you have any other issues.

Thank you!

Buenas tardes: gracias por su gran ayuda, se ha podido solucionar los % totales de sobrestock, normostock, Sin Rotacion, Substock, Desabastecido, con la formula que usted me envio, sin embargo el porcentaje % DME, aun no me refleja el valor correcto.

 

Muy agradecido por su ayuda

 

 

v-echaithra
Community Support
Community Support

Hi @Marc_Real ,

Thank you for providing the update.
Try using this measure

% Sobrestock (Correct) =
AVERAGEX( SUMMARIZE( 'farmacia', 'farmacia'[MESANO],
"CantNom", CALCULATE(COUNT('farmacia'[CODIGO_MED])),
"CantNA", CALCULATE(COUNTROWS('farmacia'), 'farmacia'[INDICADOR] = "NO APLICA"),
"CantSS", CALCULATE(COUNTROWS('farmacia'), 'farmacia'[INDICADOR] = "SOBRESTOCK")),
DIVIDE([CantSS], [CantNom] - [CantNA])).

You must replace "SOBRESTOCK" with other indicators to replicate for Normostock, Substock, etc.

Make sure your MESANO field has no duplicate months (if using different years).

Regaards,
Chaithra E.



Buenas tardes, una consulta, que medida podria utilizar para que en mi objeto de datos de graficos de anillos,  solo me muestre, las cifras reales, tengo en el item ACICLOVIR 400 mg TABLETA, 08 Items en total,  de los cuales 05 son Sobrestock y 03 Desabastecidos

Marc_Real_1-1758921382743.png

 

Sin embargo en mi grafico de anillos me muestra de esta forma errada:

Marc_Real_2-1758921606608.png

No se de donde me esta saliendo esa informacion con error, si en la tabla en el item ACICLOVIR 400 mg TABLETA, no tengo ningun dato de substock

 

Marc_Real_3-1758921674373.png

 

 

 

 

Hi @Marc_Real ,

Confirm the chart is linked exclusively to the dataset for ACICLOVIR 400 mg TABLETA.
Ensure no other items or rows are being included due to incorrect filters or ranges.
Look for any unintended fields like "substock" that might be contributing additional values.
Remove or exclude these from the chartโ€™s data range.
If you're using custom formulas to calculate "Overstock" and "Out of Stock", double-check the logic.
Make sure each condition is correctly defined and not pulling from unrelated columns or datasets.
If you're using custom formulas to calculate "Overstock" and "Out of Stock", double-check the logic.
Make sure each condition is correctly defined and not pulling from unrelated columns or datasets.
Ensure the chartโ€™s filter criteria are correctly set to isolate only the relevant item.

Hope this helps.
Chaithra E

Hola, buenos dias

 

Me podrias ayudar a saber que filtro de texto es este? o si esta en el menu de objetos visuales para poder aplicarlo porfavor, muy agradecido por su atencion

 

Marc_Real_0-1760537794981.png

 

Marc_Real_1-1760537956186.png

 

Hi @Marc_Real ,

Yes, the visual in the image shows a slicer that allows you to filter a dataset based on text input. The user is able to type in "aciclovir" to filter the results. This is a text-based slicer where you can filter a list of items based on partial text matching.
Select the "Slicer" visual from the visualizations pane.
Drag the field (such as "PRODUCTOS") into the slicer. This will allow you to filter the list based on the text input.
This slicer lets you search for specific values (like "aciclovir" in the example) and filter data accordingly.

vechaithra_1-1761214813807.png


Thank you.

Hi @Marc_Real ,

Make sure that in your dataset, there are no empty or error values in the column related to substock. Ensure that rows with no substock are marked as null or that the value is explicitly empty. If an erroneous value, like 0 or N/A, is being treated incorrectly, the chart might be interpreting these as valid data for substock.
It's possible that the chart is incorrectly calculating the total substock. Ensure that your chart calculation logic includes only valid categories for sobrestock and desabastecido. If substock has no data, exclude it from the chart. Make sure that only sobrestock and desabastecido values are being calculated correctly.

Thank you.

Marc_Real
Frequent Visitor

He tratado de utilizar las funciones SUMMARIZE convinada con SUM y no logro obtener el resultado correcto,

 

la columna que estoy contando es codigo_med, utilizando la siguiente medida

CANT NOM = COUNT(farmacia[CODIGO_MED])+0
 

calculando la cantidad del indicador :

Cant Sobrestock =
CALCULATE([CANT NOM],farmacia[INDICADOR]="SOBRESTOCK")

 

y estoy utilizando para calcular el % por indicador(Sobrestock, normostock, substock, etc)

% Sobrestock =
DIVIDE([CANT SOBRESTOCK],[CANT NOM]-[Cant Noaplica])

 

Marc_Real_0-1757095061301.png

 

lbendlin
Super User
Super User

"Think like the Grand Total" - create your measures with the assumption that multiple values are selected, and use SUMMARIZE or SUMMARIZECOLUMNS for that, combined with SUMX etc.  Once implemented, the measures will then also work for single selections.

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.