Evening,
I’m trying to SUM() a list with a Number type VC expression and I don’t get why it isn’t working…
MIN(
SELECT(
survey[_RowNumber],
AND(
[lcs] = [_THISROW].[lcs],
[select_cabinet_to_survey] = [_THISROW].[select_cabinet_to_survey],
[survey_number] = [_THISROW].[survey_number]
))
)
SUM(
SELECT(
survey[cms_estimate],
[_RowNumber] =
...
)
)
SUM(
SELECT(
survey[cms_estimate],
[_RowNumber] =
MIN(
SELECT(
survey[_RowNumber],
AND(
[lcs] = [_THISROW].[lcs],
[select_cabinet_to_survey] = [_THISROW].[select_cabinet_to_survey],
[survey_number] = [_THISROW].[survey_number]
))
)
)
)
Please could someone point out what I’m doing wrong…?.. Cheers…
Solved! Go to Solution.
Just a guess, but you have two nested SELECT()s, so maybe try [_THISROW-1]
.
Just a guess, but you have two nested SELECT()s, so maybe try [_THISROW-1]
.
Hi @GreenFlux,
Hole-in-one! That did the trick…! Many thanks…
SUM(
SELECT(
survey[cms_estimate],
[_RowNumber] =
MIN(
SELECT(
survey[_RowNumber],
AND(
[lcs] = [_THISROW-1].[lcs],
[select_cabinet_to_survey] = [_THISROW-1].[select_cabinet_to_survey],
[survey_number] = [_THISROW-1].[survey_number]
))
)
)
)
.
.
Cheers…
Glad to help!
User | Count |
---|---|
39 | |
28 | |
23 | |
23 | |
13 |