cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Dax / Viz : Formato Plus/Menos y formato condicionado

Hola a todos

Teniendo en cuenta una medida, me gustaría:

  • Añadir + o - signo antes de los dígitos
  • Aplicar formato condicional al valor (por ejemplo, rojo si es negativo, verde si positivo)

Puedo añadir + o - signo con myMeasure - FORMAT( [Foo]+[Bar] ; "+0.0%;-0.0%"), pero parece convertir la medida en cadena.

Una solución muy difícil debe ser crear 2 medidas:

  • myMeasure1 ... calculado ... , es decir, cuyo tipo es numérico
  • myMeasure2 - FORMAT( myMeasure1; "+0.0%;-0.0%"), cuyo tipo es string.

A continuación, aplique formato condicional en myMeasure2 según el valor myMeasure1.

¿Hay una solución más eficiente y elegante?

saludos

1 REPLY 1
Highlighted
Super User IX
Super User IX

Re: Dax / Viz : Formato Plus/Menos y formato condicionado

@jct999 , Pruebe la opción de formato en una columna de la vista Modelo

https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-custom-format-strings



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors