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

IF en la columna calculada

Hola

Por favor, necesito tu ayuda,
Tengo 2 tablas:

- Flujos de caja

Fondo

Fecha de entrada

Compromiso

- Fecha de presentación de informes

Fecha de presentación de informes
fecha de presentación de informes Q-1

Estas dos tablas no están vinculadas en mi modelo.

Quiero obtener im matrix esto

fondoFecha de entradaNewcolumn

La nueva columna se basa en el valor seleccionado en mi segmentación de datos (la segmentación de datos contiene la fecha de informe)
Y quiero obtener True Or False en Newcolumn si Entrydate está entre ReportingDate y ReportingdateQ-1.

Estuve probando muchas medidas pero no funcionan:

NewCommitment =
Dónde Rd = VALOR SELECCIONADO(ReportingDate[ReportingDate])
Dónde rdM1 = ANTERIORTRIMESTRE(ReportingDate[ReportingDate])
Dónde Fecha de entrada= ..MAX(CashFlows[EntryDate])

devolución SI( Fecha de entrada < Rd && Fecha de entrada > rdM1 ,"Verdadero","Falso")

Gracias

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

NewEntryDate =
DÓNDE _CurrentMonth = VALOR SELECCIONADO(ReportingDate[ReportingDate])
DEVOLUCIÓN
CALCULAR(
..MAX(CashFlows[EntryDate]),
FECHASSINPERÍODO(
CashFlows[EntryDate],
_CurrentMonth,
-1,
CUARTO
)
)

View solution in original post

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

NewEntryDate =
DÓNDE _CurrentMonth = VALOR SELECCIONADO(ReportingDate[ReportingDate])
DEVOLUCIÓN
CALCULAR(
..MAX(CashFlows[EntryDate]),
FECHASSINPERÍODO(
CashFlows[EntryDate],
_CurrentMonth,
-1,
CUARTO
)
)
Syndicate_Admin
Administrator
Administrator

NewCommitment = VAR rd = SELECTEDVALUE(ReportingDate[ReportingDate]) VAR rdM1 = PREVIOUSQUARTER(ReportingDate[ReportingDate]) VAR filteredDates = FILTER(ReportingDate, ReportingDate[ReportingDate] = rd || ReportingDate[ReportingDate] = rdM1) RETURN SWITCH(TRUE(), AND(MIN(filteredDates[ReportingDate]) <= MAX(CashFlows[EntryDate]), MAX(CashFlows[EntryDate]) <= MAX(filteredDates[ReportingDate])), "True", "False" )

Por favor, pruebe esta medida 🙂

Hola

Gracias por tu respuesta. Pero tengo el siguiente error:

ndris_0-1674651767657.png

Clases

Gracias por tu respuesta pero tengo este errror:

ndris_0-1674568766285.png

Amable

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.