Value from last column with this condition

Good Day All,

Looking for some help with an expression problem that I got from steves wonderful post here.

Im looking to get the latest value a user from the same device has selected.

See expression

LOOKUP(
  MAX(
    SELECT(
      Viewing Production Lines[_ROWNUMBER],
      ([_THISROW].[uuid] = Context("Device"))
    )
  ),
  "Viewing PRoduction Lines",
  "_ROWNUMBER",
  "Production Line"
)

See table.

Whenever I โ€œTestโ€ the expression it comes up blank

Solved Solved
0 4 277
1 ACCEPTED SOLUTION

When tested from the editor CONTEXT("Device") always returns a value of expression-assistant-device-id. I believe there wonโ€™t be any rows matching this record, so it returns a blank value. As such, CONTEXT("Host") - when tested in the editor - always returns the value of Server.

View solution in original post

4 REPLIES 4

This is the culprit why you are getting a blank result.

When tested from the editor CONTEXT("Device") always returns a value of expression-assistant-device-id. I believe there wonโ€™t be any rows matching this record, so it returns a blank value. As such, CONTEXT("Host") - when tested in the editor - always returns the value of Server.

Thank you :),

Next time I should just proceed to the next step, its all working.Thanks.

@Steve Could you put this in the docs?

Done.

Top Labels in this Space