Hi all,
Can anyone tell me what the maximum supported number of nested if statements is?
I'm using the parameter trick to allow users to select which variable to group by, it would be useful to know how many options I can give them, I have six currently and the calculated item formula is getting long, I want to ensure I dont stretch it too far
Sure,
this one directly calculates the report value related to the selected unit from the button select.
greetings
I wrote the documentation for this part of the product and am not aware of any nesting limit. If there is a limit, I'll want to know about it so I can add it to the doc.
Great thank you,
Will report back if I run into any issues
Hi there,
please consider using if then else with a blank as an 'not true' answer.
now you can catenate the all the ifthenelse answers and trim them to one answer.
no nested loops, a beter overview and an endles solution.
greetings
Hi,
Can you give a brief example?
Sure,
this one directly calculates the report value related to the selected unit from the button select.
greetings
That's a really interesting approach,
I wouldn't have attempted it this way as I would have assumed that adding 0 would have resulted in issues, it makes the formula much more readable,
I'll definitely test out switching to this syntax
Thank you
Good to hear you have an alternative now.
Small advice, relate the buttonbar to a seperate table that only consists of the selectable options.
This way you are sure that you always have all of the options. Using a group field might give a problem here.
Anyway, maybe its good to mark your request as solved.
Greetings and good luck, Peter
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.