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
Anonymous
Not applicable

Ayuda de DAX

Hola

Alguien puede ayudarme con Dax.

He creado 2 medidas que toman la fecha de inicio y la fecha de finalización de la segmentación.

StartDate á calculate(min(datetable[date]),allselected(datetable[date]))

EndDate á calculate(max(datetable[date]),allselected(datetable[date]))

Quiero crear una columna que muestre que una tarjeta en particular ha caducado o no.

Caducado: IF([Fecha de finalización] > 'Tipo de tarjeta'[GracePeriodEndDate] ,1,0)

Estoy usando esta fórmula, pero esto está dando 0 para todas las filas.

Tengo que contar las cartas activas y caducadas en un rango de fechas en particular.
Si selecciono un intervalo de fechas de 1enero-2015 a 15Nov-2015 , y una tarjeta caduca el 22 de junio, entonces ese recuento de tarjetas debe venir
en Activo, así como expirado para este intervalo de fechas.

6 REPLIES 6
parry2k
Super User
Super User

@mvarun01 añadir esto como un mesaure

Expired = IF([End Date] > MAX('Card Type'[GracePeriodEndDate]) ,1,0)

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Hola @parry2k ,

Gracias por responder.

He probado la medida, pero todavía no tengo la solución. Para el max GracePeriodEndDate obtener la solución. Screenshot (14)_LI.jpg Screenshot (16)_LI.jpg

@mvarun01 siento me perdí la relación, prueba esta medida

Expired_Measure = 
VAR __m =  MAX('Card Type'[GracePeriodEndDate]) 
RETURN IF ( [End Date] > __m , 1, 0 ) * DIVIDE (__m, __m)

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k Intenté esta medida, pero todavía no tengo la solución. Realmente aprecio tus esfuerzos. Gracias

@mvarun01 No tengo idea de por qué no está funcionando, compartir el archivo pbix, eliminar información sensible antes de compartir.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

@parry2k Sí, claro

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.