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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
shaunmag
Helper I
Helper I

Formato de números a miles / millones en tarjeta sin varias filas visual

Tengo una tarjeta de varias filas, que muestra un rango de valores numéricos que van desde 10 hasta 10 millones.

Me gustaría formatear cada valor individual para que se muestre en la unidad más adecuada (miles / millones, etc),), dependiendo de su valor.

En el panel Formato > Etiquetas de datos, no hay ninguna opción para hacerlo.

¿Alguien tiene idea de cómo puedo evitar esto?

Gracias

5 REPLIES 5
v-alq-msft
Community Support
Community Support

Hola, @shaunmag

Según su descripción, creé datos para reproducir su escenario.

Tabla (una tabla calculada):

Table = GENERATESERIES(10,100000000,1)

Puede crear una medida como la siguiente.

FormatedValue = 
var _value = SELECTEDVALUE('Table'[Value])
return
SWITCH(
    TRUE(),
    _value>=10&&_value<=99,(_value/10)&" ten digits",
    _value>=100&&_value<=999,(_value/100)&" hundreds",
    _value>=1000&&_value<=999999,(_value/1000)&" thousands",
    _value>=1000000,(_value/1000000)&" millions",
    _value
)

Resultado:

a2.png

Saludos

Allan

Si este post ayuda,entonces por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Anonymous
Not applicable

Esta solución funcionó bien. Pero, ¿hay alguna manera de que podamos tener algo similar en los gráficos circulares?

amitchandak
Super User
Super User

HI @amitchandak ,

¿Dónde está esta funcionalidad en el nuevo panel de formato? No puedo encontrarlo.

@shaunmag en la tarjeta de varias filas no tiene la opción de establecer unidades de visualización, debe preformatear los valores antes de usar en este objeto visual.

Pregunte cualquier cosa Power BI. Reserva una cita para una consulta gratuita en https://www.perytus.com



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Kudoed Authors