It's possible to do this using SQL but only if your dataset is stored in a technology that supports SQL. Therefore I would suggest using a metric for a more portable solution which will work for any dataset type. Follow these steps:
- In the dataset where you have your true/false variable click on Metrics and then Edit Metrics and then enable Max on column statistics for your true/false column
- Create a scenario step to "Compute metrics" and add the dataset that has the variable to it. You must give this step a name and you should not use spaces (let's call this step Compute_Metrics)
- Next create a scenario step to "Define scenario variables"
- On the Define scenario variables step toggle the "Evaluated variables" to ON
- Then define a new variable (let's call it My_Column) with this formula:
filter(parseJson(stepOutput_Compute_Metrics)['CT_TEST.my_dataset_NP']['computed'], x, x["metricId"]=="col_stats:MAX:my_column")[0].value
You should replace CT_TEST by your Project ID, my_dataset with your dataset ID (leave the _NP) and my_column with your column name, case sensitive. Note that "Compute_Metrics" refers to the previous step name where you computed metrics for the dataset.- Finally in all your conditional steps (ie steps that should only run when variable = true) set "Run this Step" to "If condition is satisfied" and the condition to:
My_Column == "true" && outcome != 'FAILED'
https://us.v-cdn.net/6038231/uploads/7NJ9JI80C1M3/image.png
https://us.v-cdn.net/6038231/uploads/KKMYF3D6HVV9/image.png
https://us.v-cdn.net/6038231/uploads/K3O5M2P9ESAH/image.png
https://us.v-cdn.net/6038231/uploads/TO8HCV738YYW/image.png
Sample execution with true value:
https://us.v-cdn.net/6038231/uploads/Y1SDWSECRGF4/image.png
With false value:
Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!