Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hola a todos, tengo una tabla que se ve así, con muchas columnas irrelevantes entre Team y ExceedededGoalBy. Quiero codificar por colores cada fila en función de un cálculo de la columna ExceededGoalBy. ¿Cómo escribiría una medida que pueda usar para el valor de campo en el formato condicional con la siguiente lógica: si ExceedededGoal <0, use el color rojo? De lo contrario, si > = 0 y <5, use el color amarillo, de lo contrario, si > = 5, use el verde. ¿Puede ayudarme de alguna manera a averiguar cómo escribir esta medida DAX?
Equipo | RandomColumn1 | RandomColumn2 | ExceedededGoalBy |
1 | a | Hectogramo | 5 |
2 | b | d | 12 |
3 | d | e | 0 |
4 | f | u | 2 |
5 | e | r | 7 |
@jake4001 esta medida de color:
Color Measure =
VAR __Exceeded = SELECTEDVALUE ( Table[Exceeded Goal By] )
RETURN
SWITCH ( TRUE (),
__Exceeded >= 5, "Green",
__Exceeded >= 0, "Yellow",
"Red"
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.