Report Email Expression Column Value Okay?

I am setting up a report to send an email to [Manifest Email] in table Service Location when the value of column [Service Format] is โ€œOn Callโ€. The expression I am plugging into the โ€œtoโ€ field of the report email is:

SELECT(Service Location[Manifest Email], ([Service Format] = โ€œOn Callโ€), TRUE)

However the expression builder says this formula is not evaluated in the context of a row so column values are not available. Since [Service Format] is a column will this work? The expression builder says it is successful but the message says it wonโ€™t work. A but confused. Thanks.

Solved Solved
0 2 450
1 ACCEPTED SOLUTION

A little confusing I can agree, but what itโ€™s intending to say is you canโ€™t use values from a โ€œcurrent row.โ€

When I say โ€œcurrent rowโ€ what I mean is like when youโ€™re making an app formula, that formula is evaluated with the ability to use values from a specific row using the [_thisrow] command.

What this error is saying is that the formula you put in wonโ€™t be able to make use of this command, everything used in the formula needs to be universal - like what youโ€™ve got in your formula.

This formula will work

SELECT(Service Location[Manifest Email], ([Service Format] = โ€œOn Callโ€), TRUE)

Thereโ€™s no [_thisrow] and youโ€™re not using any values from a specific column; youโ€™re saying that you want emails from the Location table where the [Service Format] column (in the table youโ€™re pulling from) is equal to โ€œOn Callโ€ - and itโ€™s perfectly fine to do this.


(FYI: your formula would NOT work like this)
SELECT(Service Location[Manifest Email], ([Service Format] = [_thisrow].[Service Format]), TRUE)

Granted, it seems that wouldnโ€™t work in the spirit of your formula anyways, but Iโ€™m trying to illustrate a point; hope I got it accross.

View solution in original post

2 REPLIES 2

A little confusing I can agree, but what itโ€™s intending to say is you canโ€™t use values from a โ€œcurrent row.โ€

When I say โ€œcurrent rowโ€ what I mean is like when youโ€™re making an app formula, that formula is evaluated with the ability to use values from a specific row using the [_thisrow] command.

What this error is saying is that the formula you put in wonโ€™t be able to make use of this command, everything used in the formula needs to be universal - like what youโ€™ve got in your formula.

This formula will work

SELECT(Service Location[Manifest Email], ([Service Format] = โ€œOn Callโ€), TRUE)

Thereโ€™s no [_thisrow] and youโ€™re not using any values from a specific column; youโ€™re saying that you want emails from the Location table where the [Service Format] column (in the table youโ€™re pulling from) is equal to โ€œOn Callโ€ - and itโ€™s perfectly fine to do this.


(FYI: your formula would NOT work like this)
SELECT(Service Location[Manifest Email], ([Service Format] = [_thisrow].[Service Format]), TRUE)

Granted, it seems that wouldnโ€™t work in the spirit of your formula anyways, but Iโ€™m trying to illustrate a point; hope I got it accross.

Ah, thank you.

Top Labels in this Space