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
IF
Post Prodigy
Post Prodigy

valor negativo entre corchetes

Hola

Tengo una columna que se llama "proyecto". su formato es el número decimal. Quiero mostrar valores negativos con corchetes. Traté de hacer una medida (Measure-FORMAT([Project];" ##,###;(##,###);-")

PowerBI se resalta en Proyecto como si no lo reconociera. ¿Qué debo hacer?

Mejor

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@IF

Así que tienes que convertir tu proyecto de columna en una medida. Hay demasiados valores, por lo que debe utilizar MAX/MIN/SUM/etc. para indicar a la medida qué valor específico convertir en ese formato.

Necesitará dos medidas, por ejemplo:

Medida1 - MAX(Tabla[Proyecto])

Medida2 - FORMATO( [Medida1], "-, (###,###); -")

(asegúrese de usar más si sus números van a los millones, es decir, ", , , , ; (#,###,###); -"

View solution in original post

@IF ,

Utilice el siguiente DAX:

MEDIDA: IF(SUM(Sheet6[Value])<0,"("("& SUM(Sheet6[Value])&")", SUM(Sheet6[Value]))
Capture.PNG
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

View solution in original post

8 REPLIES 8
Anonymous
Not applicable

@IF

Así que tienes que convertir tu proyecto de columna en una medida. Hay demasiados valores, por lo que debe utilizar MAX/MIN/SUM/etc. para indicar a la medida qué valor específico convertir en ese formato.

Necesitará dos medidas, por ejemplo:

Medida1 - MAX(Tabla[Proyecto])

Medida2 - FORMATO( [Medida1], "-, (###,###); -")

(asegúrese de usar más si sus números van a los millones, es decir, ", , , , ; (#,###,###); -"

Hola

Gracias funciona, pero el total da una suma incorrecta. ¿Cómo puedo mostrar la suma correcta?

Saludos

Tahreem24
Super User
Super User

Consulte el siguiente vídeo:

https://youtu.be/dNLuTqg938A

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

O también puedes intentar usar Dax:

• IF([Project]<0,&"("& [Project]&")", [Project])

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hola

Cuando escribo [Proyecto], el power bi no lo reconoce. lo subraya con rojo desafortunado.

@IF ,

¿Qué es [Proyecto] exactamente? ¿Es Medida o solo un campo o Columna calculada?

Si es campo de la tabla así que intente utilizar la aggreagation como SUM,MAX, etc.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

@IF ,

Utilice el siguiente DAX:

MEDIDA: IF(SUM(Sheet6[Value])<0,"("("& SUM(Sheet6[Value])&")", SUM(Sheet6[Value]))
Capture.PNG
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard

Hola

Muchas gracias por la ayuda. ayuda. El último problema si usted podría ayudar: cuando pongo corchetes, no quiero ver el signo menos. debe ser, por ejemplo; -3 o (3) Sin embargo, la suma debe ser como usted mostró. Por ejemplo; (3)+4 suma:1 ¿Existe alguna posibilidad de no mostrar el valor menos?

saludos

Si

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.