Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
malmsteen1977
Partner - Contributor
Partner - Contributor

Alternate States in Set Analysis

Hi Community,

is it possible to reference on 2 different Alternate States inside one Set Analysis?

I defined 2 Alternate States (Lagerort, Datum) which represents StorageArea and Date

And the following Expression:

FirstSortedValue({$< MainDate = {"$(='<=' & Date(Max(MainDate)))"}, %ML_Ort_KEY=Lagerort::%ML_Ort_KEY >}Timestamp_Neu,-Timestamp_Neu)

The bolded Expression works perfectly for the PrimaryKey %ML_Ort_KEY "Lagerort (StorageArea)"  and a Listbox on the surface.

My question: Can I include the second Alternate State for "Datum" in the following dynamic part:

MainDate = {"$(='<=' & Date(Max(MainDate)))"}

Greetings

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe

MainDate = {"$(='<=' & Date(Max({Datum} MainDate)))"}

View solution in original post

4 Replies
juraj_misina
Luminary Alumni
Luminary Alumni

Hello Hannes,

I'm pretty sure I've done something similar, so it should be possible.

Juraj

malmsteen1977
Partner - Contributor
Partner - Contributor
Author

Hello Juraj,

sounds good. Do you have a solution?

Best

Hannes

swuehl
MVP
MVP

Maybe

MainDate = {"$(='<=' & Date(Max({Datum} MainDate)))"}

malmsteen1977
Partner - Contributor
Partner - Contributor
Author

Bingo Stefan 🙂

I have set the wrong reference with the following brackets: [] instead of {}

Thanks !!!!!