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
Syndicate_Admin
Administrator
Administrator

Intervalo de fechas basado en la columna de grupo

identificaciónfechaimporte
105/05/201950
110/05/2019200
115/05/2019200
120/05/2019200
121/05/2019200
205/05/2019100
210/05/2019150
215/05/2019115
220/05/2019150
305/05/2019200
310/05/201975
315/05/201975
420/05/2019150
510/05/2019200
520/05/2019125
605/05/2019100

En función de las columnas [date] y [ID] hay una manera de obtener un intervalo de fechas por ID:

identificaciónRango de fechas
105/05/2019 - 21/05/2019
205/05/2019 - 20/05/2019
305/05/2019 - 15/05/2019
420/05/2019 - 20/05/2019
510/05/2019 - 20/05/2019
605/05/2019 - 05/05/2019

He intentado agregar una nueva columna, pero no respeta la columna ID:

Columna = CALCULATE(MIN('Table'[Date]),ALLEXCEPT('Table','Table'[Max Date])) y "-" & CALCULATE(MAX('Table'[Date]),ALLEXCEPT('Table','Table'[Max Date]))
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

No @Niiru1

Agregue una medida como esta a usted visual.

Fecha Range_ =
var _ID = SELECTEDVALUE(Sheet1[ID])
var _MinDate = CALCULATE(MIN(Sheet1[Date]), Sheet1[ID] = _ID)
var _MaxDate = CALCULATE(MAX(Sheet1[Date]), Sheet1[ID] = _ID)

devolución
CONCATENAR(CONCATENAR(_MinDate", - "), _MaxDate)

View solution in original post

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

No @Niiru1

Agregue una medida como esta a usted visual.

Fecha Range_ =
var _ID = SELECTEDVALUE(Sheet1[ID])
var _MinDate = CALCULATE(MIN(Sheet1[Date]), Sheet1[ID] = _ID)
var _MaxDate = CALCULATE(MAX(Sheet1[Date]), Sheet1[ID] = _ID)

devolución
CONCATENAR(CONCATENAR(_MinDate", - "), _MaxDate)

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.