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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

¿Cómo obtengo un signo positivo agregado a una columna

Estoy tratando de agregar una columna condicional que dice si el valor es mayor que 0 (y por lo tanto no negativo) a continuación, agregue un signo + en frente si el valor, pero si negativo no

en el momento es sólo añadir una columna con + y ningún valor después de ella?

¿Alguien tiene alguna idea de cómo hacer esto por lo que incluye el valor?

3 ACCEPTED SOLUTIONS
Pragati11
Super User
Super User

Hola @clh_1496 ,

Intente crear una columna de la siguiente manera:

NewCol - IF([YourColumn] > 0, CONCATENATE("+", [YourColumn]), [YourColumn])

Reemplace [YourColumn] encima de DAX por la columna real de la tabla.

Gracias

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

BA_Pete
Super User
Super User

Hola @clh_1496 ,

Prueba esto:

newValue = 
FORMAT(
    [yourValuesColumn],
    "+0.0;-0.0;0.0"
)



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

v-xuding-msft
Community Support
Community Support

Hola @clh_1496 ,

También puede cambiar el formato de la columna en lugar de crear una nueva columna.

+#,#.#;-#,#.#;0

1.PNG2.PNG

Usar cadenas de formato personalizado en Power BI Desktop

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-xuding-msft
Community Support
Community Support

Hola @clh_1496 ,

También puede cambiar el formato de la columna en lugar de crear una nueva columna.

+#,#.#;-#,#.#;0

1.PNG2.PNG

Usar cadenas de formato personalizado en Power BI Desktop

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BA_Pete
Super User
Super User

Hola @clh_1496 ,

Prueba esto:

newValue = 
FORMAT(
    [yourValuesColumn],
    "+0.0;-0.0;0.0"
)



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Pragati11
Super User
Super User

Hola @clh_1496 ,

Intente crear una columna de la siguiente manera:

NewCol - IF([YourColumn] > 0, CONCATENATE("+", [YourColumn]), [YourColumn])

Reemplace [YourColumn] encima de DAX por la columna real de la tabla.

Gracias

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Fowmy
Super User
Super User

@clh_1496

Tratar


FORMAT([Columna],"+0.0")

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Haga clic en el icono Thumbs-Up a la derecha si le gusta esta respuesta 🙂

YoutubeLinkedin
Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Mariusz
Community Champion
Community Champion

Hola @clh_1496

Prueba Medir así

Measure = 
"+" & SUM( 'Table'[Column1] )

Tenga en cuenta que esta medida devolverá texto

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin


Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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