Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hola,
Necesito obtener el numero de dias entre fechas que no son seguidas. por ejemplo lo que muestra una imagen necesito una medida que me indique cuantos dias hay de una a otra por ejemplo entre 2020-03-09 cuantos dias hay con base en 2020-03-05 y tambien seria entre 2020-03-05 cuantos dias hay con base en 2020-03-01.
hi @Anonymous
You could also use this logic to create the measure as below:
Measure = DATEDIFF(CALCULATE(MAX('Table'[Fecha]),FILTER(ALL('Table'),'Table'[Fecha]<MAX('Table'[Fecha]))),CALCULATE(MAX('Table'[Fecha])),DAY)
Regards,
Lin
Not very clear from you example. But in case you need date diff from last date you can have a new column like
Date diff = datediff( maxx(filter(table,[Date]<earlier([Date]) ),[Date]),[Date],DAY)
Hola amitchandak
gracias por tu respuesta, pero lo que necesito es una medida para mostrarla en una matrix, lo que se quiere es cada vez que se filtren fechas la medida haga la diferencia entre las fechas.
Por ejemplo si en la matrix estan en las filas las fechas 2020-02-05 , 2020-02-10, 2020-02-15
lo que debe hacer la medida es decir cuantos dias en la fila de 2020-02-15 de mostrar los dias entre 2020-02-15 y 2020-02-10
en la fila de 2020-02-10 debe msotrar en numero de dias entre 2020-02-10 y 2020-02-07 y la ultima como no tiene comtra que comparar debe colocarle 1.
| Fecha | Dias |
| 7/02/2020 | 1 |
| 10/02/2020 | 3 |
| 15/02/2020 | 5 |
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 48 | |
| 45 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 69 | |
| 64 | |
| 32 | |
| 31 | |
| 27 |