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.
Hola a todos
Tengo una tabla simple con valor:
Col1 Col2
A 100
B 150
C 200
D 250
Quiero resaltar los valores Col2 que son menores que el promedio de todos los valores Col2 (el promedio es 175) como rojo y más que e igual a los valores como verde. 100 y 150 vendrán en rojo y 200 y 250 vendrán en verde. ¿Hay alguna manera de lograr esto?
Solved! Go to Solution.
Hola @Aditya-Upadhyay ,
Cree la siguiente medida:
Condittional formatting = IF(SUM('Table'[Column2]) <= AVERAGEX(ALLSELECTED('Table'[Column1];'Table'[Column2]);'Table'[Column2]);"Red";"Green")
A continuación, sólo tiene que utilizar esta columna para hacer el formato condittional:
Puede cambiar el formato "Rojo" "Verde" a color personalizado utilizando los códigos HEX como este "#ffffff"
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHola @Aditya-Upadhyay ,
Cree la siguiente medida:
Condittional formatting = IF(SUM('Table'[Column2]) <= AVERAGEX(ALLSELECTED('Table'[Column1];'Table'[Column2]);'Table'[Column2]);"Red";"Green")
A continuación, sólo tiene que utilizar esta columna para hacer el formato condittional:
Puede cambiar el formato "Rojo" "Verde" a color personalizado utilizando los códigos HEX como este "#ffffff"
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em Português@Aditya-Upadhyay - Puede crear una medida como:
Color Flag =
VAR __Average = AVERAGEX('Table',[Col2])
RETURN
IF(MAX([Col2])<__Average,1,2)
Puede usar esta medida en las reglas de formato condicional. 1 es rojo, 2 es verde.
@Aditya-Upadhyay , Una de las maneras es condicionar el formato usando la medida con la opción "Valor de campo"
Cree una medida como esta y ócela en formato condicional después de seleccionar "Valor de campo"
Color Date = if(FIRSTNONBLANK('Date'[Date],TODAY()) <today(),"lightgreen","red")
Color Date =
var _min =minx(allselected(Date,Date[Year])
return
Switch( true(),
FIRSTNONBLANK('Date'[Year],year(TODAY()))-_min =0 ,"lightgreen",
FIRSTNONBLANK('Date'[Year],year(TODAY()))-_min =0 ,"blue",
"red")
if(FIRSTNONBLANK(Table[Value],"true")= "true","green","red")
if(FIRSTNONBLANK(date[date],blank())= tofay(),"green","red")
if(max(date[date])= tofay(),"green","red")
Consulte:https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |