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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
BYENER
Helper V
Helper V

Mostrar diferencia entre las dos últimas fechas seleccionadas

Hola

Quiero mostrar la diferencia entre las dos últimas fechas seleccionadas (ajustable con segmentación). Por ejemplo, si mi segmentación de datos comienza con 19/07 y termina con 23/07 de lo que quiero ver la diferencia entre 22/7 y 23/7.

fecha, cuenta columna

19/07 100

20/07 500

21/07 450

22/07 870

23/07 200

La medida tiene que volver a los 200 - 870o - 670

Intenté la medida de seguimiento, pero no fue correcto

var MinDate - calculate(count(column), filter(date, min(date.date))

var MaxDate - calculate(count(column), filter(date, max(date.date))

returm - MaxDate - MinDate

¿Quién puede ayudarme?

2 REPLIES 2
amitchandak
Super User
Super User

@BYENER , Probar como

medida :
var _max á maxx(allselected(Date),Date[Date])
var _min á _max -1
devolución
calculate(sum(Table[Value]), filter(Table,Table[date]-_max)) -calculate(Sum(Table[Value]), filter(Table,Table[date]-_min))


medida :
var _max á maxx(allselected(Date),Date[Date])
var _min á _max -1
devolución
calculate(sum(Table[Value]), filter(Date,Date[date]-_max)) -calculate(Sum(Table[Value]), filter(Date,Date[date]-_min))

refer,Power BI — Preguntas de inteligencia diurna — Time Intelligence 5–5
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5c3243d...

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

@amitchandak muchas gracias, ¡está funcionando!

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Solution Authors