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
aso1
Helper II
Helper II

Crear tarjeta simple - ok/error

Tengo un trabajo diario en el que presiono el filtro 'fecha-entrada' sobre una base diaria (abajo a la izquierda en el informe), y compruebo si 'Estado' está bien en la lista o no.

(aquí está mi informe real)

integrity_report.jpg

Quiero hacer esto más inteligente... al tener una tarjeta que básicamente dice "OK" o "ERROR".

integrity_card.jpg

La tarjeta debe comprobar la fecha más reciente (date_in), a continuación, debe comprobar si todos los elementos en 'Estado' es correcto.

si todos los elementos están bien - a continuación, escriba "OK" Si no está bien - entonces la tarjeta debe escribir "ERROR".

¿Cómo puedo lograrlo?

gracias de antemano

6 REPLIES 6
v-lili6-msft
Community Support
Community Support

hola @aso1

Crear una medida como esta

Resultado ?
Si (
Calcular ( COUNTA ('Tabla'[Estado]), 'Tabla'[Estado] <>"Bien" ) > 0,
"ERROR",
"Bien"
)

A continuación, arrastre esta medida a la tarjeta visual.

saludos

Lin

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

¡Wow!.. ¡¡Perfecto!!.. esto funciona.

sin embargo, sólo necesito filtrar 'Tempdb' hacia fuera. No necesito un cheque en esa base de datos.

si tempdb está fuera de esta lista, entonces tendré 100% OK.

Traté de filtrarlo en el informe .. pero eso todavía me dio "ERROR / NO OK" en la tarjeta.

¿Puede poner una exclusión en el resultado, por lo que no comprobará la base de datos tempdb?..

tempdb.jpg

hola @aso1

Ajuste la fórmula como se indica a continuación:

Resultado ?
Si (
Calcular ( COUNTA ('Tabla'[Estado]), 'Tabla'[Estado] <>"OK"&&'Table'[base de datos]<>"Tempdb") > 0,
"ERROR",
"Bien"
)

saludos

Lin

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

obtención de este error.

error_.jpg

hola @aso1

Lo siento por mi descuido, por favor use "," en lugar de "&&" en la fórmula

Resultado ?
SI (
CALCULATE ( COUNTA ( 'Table'[Status] ), 'Table'[Status] <> "OK",'Table'[base de datos]<> "Tempdb") > 0,
"ERROR",
"Bien"
)
saludos
Lin
Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
Super User

@aso1, puede obtener el último estado como

lastnonblankvalue(calllog[Date],max(calllog[status]))

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.