
Announcements
If(
IsBlank(
LookUp(
'Project Status',
'Status Month' = Text(g1[@_Month]) &&
'Status Year'.Value = Text(g1[@_Year]) &&
ProjName = g1[@ProjectName],
'Payments Current Month'
)
),
"",
Value(
LookUp(
'Project Status',
'Status Month' = Text(g1[@_Month]) &&
'Status Year'.Value = Text(g1[@_Year]) &&
ProjName = g1[@ProjectName],
'Total Payments'
)
)
If(
IsBlank(
LookUp(
'Project Status',
'Status Month' = Text(g1[@_Month]) &&
'Status Year'.Value = Text(g1[@_Year]) &&
ProjName = g1[@ProjectName],
'Payments Current Month'
)
),
Value(
LookUp(
'Project Status',
'Status Month' = Text(g1[@_Month]) &&
'Status Year'.Value = Text(g1[@_Year]) &&
ProjName = g1[@ProjectName],
'Total Payments'
)
)
If(
IsBlank(
LookUp(
'Project Status',
'Status Month' = Text(g1[@_Month]) &&
'Status Year'.Value = Text(g1[@_Year]) &&
ProjName = g1[@ProjectName],
'Payments Current Month'
)
),
Value(
LookUp(
'Project Status',
'Status Month' = Text(g1[@_Month]) &&
'Status Year'.Value = Text(g1[@_Year]) &&
ProjName = g1[@ProjectName],
'Total Payments'
)
),
Value(
LookUp(
'Project Status',
'Status Month' = Text(g1[@_Month]) &&
'Status Year'.Value = Text(g1[@_Year]) &&
ProjName = g1[@ProjectName],
'Payments Current Month'
)
)
)
ClearCollect(
ColTest,
With( //Let's cache the LookUp as projectStatus
{
projectStatus: LookUp(
'Project Status',
'Status Month' = Text(g1[@_Month]) &&
'Status Year'.Value = Text(g1[@_Year]) &&
ProjName = g1[@ProjectName]
)
},
AddColumns(
g1,
"_Financial",
If(
IsBlank(projectStatus.'Payments Current Month'),
Value(projectStatus.'Total Payments'),
Value(projectStatus.'Payments Current Month')
)
)
)
)