- François Rossignol
- PowerBuilder
- Wednesday, 11 March 2020 02:27 PM UTC
Hi
I need help figuring out the correct expression (if at all possible) for the following case.
I have a datawindow
Each row have:
column1 which will have A B C or D as value
column2 a decimal value
In the header I want a compute to display a value depending and the column1 of the first line which I can do by testing first(column1 for all)
Now this is where it gets tricky
if column1 = "A" or "B" then column2 from row 1
if column2 = "C" then column2 from the first line where column1 is either "A" or "B"
if column2 = "D" then 0
I can't figure out the "then" part of the = "C" part.
I know I can do it without a compute with some code but I'd really like to have everything inside the DW in this case.
We're using PB 2017 R3
Thanks in advance for any usefull tip.
Regards
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.