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
Serdet
Post Patron
Post Patron

Duración del alquiler de rebanas

Hola a todos

Tengo un conjunto de datos similar al de abajo.

Quiero crear una cortadora que cuando se seleccionan botones individuales mostrará ID que han estado en alquiler durante 1 mes, 2 meses, 3 meses, etc.

IdEn la fecha de contrataciónFecha de contratación baja
101/01/201901/02/2019
201/01/201901/03/2019
301/01/201901/04/2019
401/01/201901/05/2019

¿Alguien puede ayudar?

6 REPLIES 6
v-jayw-msft
Community Support
Community Support

Hola @Serdet ,

Cree una tabla como se muestra a continuación y utilice la columna month como silcer.

1.PNG

A continuación, cree una medida como se muestra a continuación y agréguela al filtro visual.

Measure = IF(DATEDIFF(SELECTEDVALUE('Table'[On Hire Date]),SELECTEDVALUE('Table'[Off Hire Date]),MONTH)<=SELECTEDVALUE('month'[value]),1,0)

El resultado se mostraría como se muestra a continuación.

2.PNG

3.PNG

Saludos

Jay

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

Hola Jay,

Gracias por tu comentario. He seguido los pasos aconsejados y tengo el siguiente resultado.

  • Cuando se selecciona un mes el objeto visual que espero realizar perderá todos sus ajustes modificados (es decir, fuente, etc.) y no mostrará ningún resultado.

Por favor, ¿puede aconsejar?

Hola @Serdet ,

No entiendo el punto, ¿podría explicar los detalles?

Saludos

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Fowmy
Super User
Super User

@Serdet

¿Puede proporcionar más información y explicar más?
¿Qué necesitas para seleccionar/filtrar? es Period as months?, ¿Cómo entran en juego Off Dates?
Muestre también una salida esperada para comprender mejor sus requisitos.

________________________

¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.

Acepto 🙂 KUDOS

YoutubeLinkedin

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hola

Estoy mirando los datos de los andamios y tengo una fecha de alquiler y alquiler. A partir de esto, quiero crear una cortadora que mostrará ciertas cajas en las que se puede hacer clic (es decir, 1 mes, 2 meses, 3 meses) y cuando se seleccionan estas cajas me mostrará todos los andamios que han estado de alquiler más tiempo que el período de tiempo seleccionado.

Perdón por la jaba jaba.

amitchandak
Super User
Super User

@Serdet, consulte si esto puede ayudar a

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

o una cortadora como esta

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...

y fórmula como

Rolling 3 á CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date],ENDOFMONTH(Sales[Sales Date]),-3,MONTH))
Rolling 3 á CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX(Sales[Sales Date]),-3,MONTH))

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.