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.
Tengo la siguiente mesa. Necesito calcular la cantidad pendiente según la siguiente fórmula.
Importe pendiente = (Importe principal - Importe principal * Porcentaje)
Así, para el primer intervalo de fechas (31/12/2020 - 29/6/2021), el importe pendiente será (100 - (100*0.0136)) = 98.64
para el siguiente intervalo de fechas (30/6/2021 - 30/12/2021), el importe pendiente será (98,64 - (100*0,0197) = 96,67
Como puede ver, necesito tomar el valor anterior para calcular lo pendiente para cada intervalo de fechas. ¿Cómo logro esto para cada proyecto?
loncha | Fecha de inicio del calendario de reembolso | Fecha de finalización del calendario de reembolsos | % | porcentaje | Nombre del proyecto | Importe principal (USD) |
A | 31/12/2020 | 29/6/2021 | 1.36 | 0.0136 | Proyecto A | 100 |
A | 30/6/2021 | 30/12/2021 | 1.97 | 0.0197 | Proyecto A | 100 |
A | 31/12/2021 | 29/6/2022 | 4.05 | 0.0405 | Proyecto A | 100 |
A | 30/6/2022 | 30/12/2022 | 4.02 | 0.0402 | Proyecto A | 100 |
A | 31/12/2022 | 29/6/2023 | 4.2 | 0.042 | Proyecto A | 100 |
A | 30/6/2023 | 30/12/2023 | 4.17 | 0.0417 | Proyecto A | 100 |
A | 31/12/2023 | 29/6/2024 | 4.36 | 0.0436 | Proyecto A | 100 |
A | 30/6/2024 | 30/12/2024 | 4.36 | 0.0436 | Proyecto A | 100 |
A | 31/12/2024 | 2/6/2025 | 4.53 | 0.0453 | Proyecto A | 100 |
A | 3/6/2025 | 3/6/2025 | 66.98 | 0.6698 | Proyecto A | 100 |
Solved! Go to Solution.
Prueba esto:
columna:
Column =
'Table'[Principal Amount (USD)]
- SUMX (
FILTER (
'Table',
'Table'[Tranche] = EARLIER ( 'Table'[Tranche] )
&& 'Table'[Repayment Schedule Start Date]
<= EARLIER ( 'Table'[Repayment Schedule Start Date] )
),
'Table'[Principal Amount (USD)] * 'Table'[Percentage]
)
Medidas:
Measure =
SUM ( 'Table'[Principal Amount (USD)] )
- SUMX (
FILTER (
ALLSELECTED('Table'),
'Table'[Tranche] = MAX ( 'Table'[Tranche] )
&& 'Table'[Repayment Schedule Start Date]
<= MAX( 'Table'[Repayment Schedule Start Date] )
),
'Table'[Principal Amount (USD)] * 'Table'[Percentage]
)
Measure - ModifiedTotalValue = SUMX('Table',[Measure])
Saludos
Helado
Si este post ayuda, entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Prueba esto:
columna:
Column =
'Table'[Principal Amount (USD)]
- SUMX (
FILTER (
'Table',
'Table'[Tranche] = EARLIER ( 'Table'[Tranche] )
&& 'Table'[Repayment Schedule Start Date]
<= EARLIER ( 'Table'[Repayment Schedule Start Date] )
),
'Table'[Principal Amount (USD)] * 'Table'[Percentage]
)
Medidas:
Measure =
SUM ( 'Table'[Principal Amount (USD)] )
- SUMX (
FILTER (
ALLSELECTED('Table'),
'Table'[Tranche] = MAX ( 'Table'[Tranche] )
&& 'Table'[Repayment Schedule Start Date]
<= MAX( 'Table'[Repayment Schedule Start Date] )
),
'Table'[Principal Amount (USD)] * 'Table'[Percentage]
)
Measure - ModifiedTotalValue = SUMX('Table',[Measure])
Saludos
Helado
Si este post ayuda, entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |