Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
NiugeS
Helper V
Helper V

Si la fecha filtrada es más pequeña, entonces en blanco

Hola a todos

Disculpas si esto es simple pero todavía estoy aprendiendo.

Tengo una tabla que contiene problemas (tickets de soporte). A veces se resuelven después del período del informe y estoy tratando de encontrar una manera de que si la fecha es mayor, entonces la segmentación de datos created Before, devuelve un valor en blanco. Hay una medida incluida para mantener las fechas resueltas en blanco y supongo que esa medida podría modificarse.

La medida 2 es actualmente ?If(MIN('Issues'[Created Date])>min('Created Date'[Date]),1,0) como pruebo pero si el valor es true quiero que se devuelva blank y si false se devuelve 'Issues'[Resolved Date]. He adjuntado el pbix para referencia Pbix Archivo

Cualquier ayuda u orientación apreciada.

Screenshot_1.jpg

16 REPLIES 16
AllisonKennedy
Super User
Super User

Medida 2 - If('Issues'[Created])<min('Created Date'[Date]), BLANK(), SELECTEDVALUE('Issues'[Created]) )
Esto le dará la misma fecha o antes de la fecha seleccionada en Creado antes de la segmentación.

¿Este post ha resuelto tu problema? Por favor, márquelo como una solución para que otros puedan encontrarlo rápidamente y para que la comunidad sepa que su problema ha sido resuelto.


Si has encontrado este post útil, por favor, dale a Kudos.

Trabajo como instructor y consultor para Microsoft 365, especializado en Power BI y Power Query.

https://sites.google.com/site/allisonkennedycv


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

az38
Community Champion
Community Champion

Hola @NiugeS

= If(MIN('Issues'[Created Date])>min('Created Date'[Date]), BLANK(), SELECTEDVALUE('Issues'[Created Date]) )

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 Gracias por la ayuda. Traté de usar la medida sugerida, pero la tabla vuelve en blanco. ¿Estoy haciendo algo mal?

Medida 2 ?
If(MIN('Issues'[Created])>min('Created Date'[Date]), BLANK(), SELECTEDVALUE('Issues'[Created]) )

Screenshot_3.jpg

@NiugeS ¿Su archivo pbix de ejemplo no coincide con su descripción?

Intente reemplazar BLANK() en la fórmula con un valor como "A" e intente poner el segundo argumento en Selectedvalue, como:

SELECTEDVALUE('Issues'[Created], "B")

Así que el resultado final será;

Medida 2 ?
If(MIN('Issues'[Created])>min('Created Date'[Date]), "A", SELECTEDVALUE('Issues'[Created], "B") )

¿Qué devuelve ahora la fórmula?

¿Este post ha resuelto tu problema? Por favor, márquelo como una solución para que otros puedan encontrarlo rápidamente y para que la comunidad sepa que su problema ha sido resuelto.

Si has encontrado este post útil, por favor, dale a Kudos.

Trabajo como instructor y consultor para Microsoft 365, especializado en Power BI y Power Query.

https://sites.google.com/site/allisonkennedycv


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

@AllisonKennedy Disculpas.. He udpated el archivo pbix de muestra.

Probé la fórmula proporcionada, pero obtener todo A en la tabla a pesar de cambiar las fechas en la segmentación:

Screenshot_4.jpg

Como ha mencionado, debe utilizar las fechas correctas. Cambie las fechas en la segmentación De creación antes y verá el cambio A. Si está viendo "A" eso significa que la condición de la instrucción IF es TRUE, si ve 'B' eso significa que la condición de la instrucción IF es false y hay más de un valor seleccionado para esa fecha.

¿Este post ha resuelto tu problema? Por favor, márquelo como una solución para que otros puedan encontrarlo rápidamente y para que la comunidad sepa que su problema ha sido resuelto.

Si has encontrado este post útil, por favor, dale a Kudos.

Trabajo como instructor y consultor para Microsoft 365, especializado en Power BI y Power Query.

https://sites.google.com/site/allisonkennedycv


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

az38
Community Champion
Community Champion

@NiugeS

y ¿está seguro de que ha adjuntado el archivo pbix correcto?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn
az38
Community Champion
Community Champion

@NiugeS

tratar también

Measure 2 =
If(MIN('Issues'[Created])>min('Created Date'[Date]), BLANK(), MIN('Issues'[Created]) )

depende de lo que 'Emisiones'[Fecha de Creación] necesite. Measure shoud tiene columna agregada


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 Gracias por venir a mí. No estoy seguro de lo que estoy haciendo mal, pero ninguna de las medidas proporciona ningún resultado.

az38
Community Champion
Community Champion

@NiugeS

por favor, adjunte el archivo correcto


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 Disculpas si copié el enlace de archivo equivocado. He actualizado el mensaje original.

az38
Community Champion
Community Champion

@NiugeS

Mucho mejor

1 establecer Activo "Mostrar tems sin datos" para el campo [Clave] en el panel Visualizaciones

2 reescribir su medida

Measure 2 = 
var _Created = MIN('Issues'[Created])

RETURN
If(_Created > CALCULATE(MIN('Created Date'[Date])), BLANK(), SELECTEDVALUE('Issues'[Created]) )

pero no estoy seguro de entender su lógica de condición correcta


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 ¡Creo que debería apagar el portátil por la noche! No expliqué mi lógica correctamente ... Quería fecha resuelta como probablemente adivinaste!


Trabajaré en la sugerencia que me proporcionó y veré si puedo darle sentido. Gracias.

az38
Community Champion
Community Champion

@NiugeS

Measure 2 = 
var _Created = MIN('Issues'[Created])
var _Resolved = MIN('Issues'[Resolved Date])

RETURN
If(_Created > _Resolved , BLANK(), _Created )

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38

Gracias por su ayuda. Modifiqué tu sugerencia anterior antes de ver la nueva. A continuación parece proporcionar los resultados deseados. Gracias por toda su ayuda. Voy a probar la otra medida también - gracias.
Screenshot_5.jpg

az38
Community Champion
Community Champion

@NiugeS

¡Buena suerte! que tengas una buena noche 🙂


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors