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
kabra_ashish
Helper III
Helper III

Tabla Visual - Formato condicional

Tengo una tabla visual con los siguientes campos:

Fecha Trans_Id Gasto($)

Ene 1 ABC123 100

2 DEF123 100 DE ENe

3 de enero GHI123 100

Ene 3 JKL123 100

Ene 4 XYZ123 100

¿Hay alguna manera de resaltar los registros que aparecen los tiempos máximos? Así que en este caso el 2 de enero aparece dos veces y me gustaría destacar los dos discos del 2 de enero. No quiero que los demás se resalten ya que aparecen una sola vez.

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Hola @kabra_ashish ,

Crear una medida

Measure = 
var _maximumcountall = MAXX(SUMMARIZE(ALL('Table'),'Table'[Date],"CC1",COUNT('Table'[Date])),[CC1])
var _maxdate = MAX('Table'[Date])
var _count = COUNTROWS(FILTER(ALL('Table'), 'Table'[Date] = _maxdate))
RETURN
if (_count = _maximumcountall, 1, 0)

2.JPG2.JPG3.JPG

saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

View solution in original post

6 REPLIES 6
v-diye-msft
Community Support
Community Support

Hola @kabra_ashish

Si la ayuda de las publicaciones anteriores, por favor márquela como una respuesta para ayudar a otros a encontrarla más rápidamente. ¡Gracias!

Si no, por favor, amablemente elaborar más.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
harshnathani
Community Champion
Community Champion

Hola @kabra_ashish ,

Crear una medida

Measure = 
var _maximumcountall = MAXX(SUMMARIZE(ALL('Table'),'Table'[Date],"CC1",COUNT('Table'[Date])),[CC1])
var _maxdate = MAX('Table'[Date])
var _count = COUNTROWS(FILTER(ALL('Table'), 'Table'[Date] = _maxdate))
RETURN
if (_count = _maximumcountall, 1, 0)

2.JPG2.JPG3.JPG

saludos
Harsh Nathani
¿He respondido a tu pregunta? ¡Marca mi puesto como una solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgares arriba)

amitchandak
Super User
Super User

@kabra_ashish , Crear una medida como

if( rankx(all(Date), calculate(count(Table[col1])),,desc,dense) 1 , "rojo", "verde")

O
if( rankx(all(Date), calculate(count(Table[col1])allexcept(Table, table[Date])),,desc,dense) ?1 , "rojo", "verde")

y usar eso en formato condicional con la opción "campo"

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

Greg_Deckler
Super User
Super User

@kabra_ashis - Podrías crear una medida como:

Measure = 
  VAR __Date = MAX('Table'[Date])
  VAR __Table = FILTER(ALL('Table'),[Date]=__Date)
RETURN
  COUNTROWS(__Table)

A continuación, puede basar el formato condicional de esta medida.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler Después de crear esta medida y luego incorporar a la tabla visual todavía da 1 para cada registro

@kabra_ashish - Estamos haciendo algo diferente entonces. Consulte el archivo PBIX adjunto. Quieres página 7, Tabla 7


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.