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 |
---|---|
35 | |
35 | |
28 | |
23 | |
18 |