The new Expression Editor was first introduced in Stable 2023.06 (June 2023) and will be made available in the LTS 2023.10 (November 2023) release. There are some noticeable changes and I wanted to point out how to use some of the new features.
The quote from Paul Cezanne, "It's so fine and yet so terrible to stand in front of a blank canvas" can resonate when you first look at the new expression editor. This can be especially true if you don’t want to start typing syntax! But don’t worry, as soon as you start to click in the editor, you’ll find your fears put to ease.
In Part 1 of this series, I will focus only on point-and-click instructions for building expressions. Part 2 of this series will demonstrate the coding features.
Select any image to see a larger version.
Mobile users: If you do not see this image, scroll to the bottom of the page and select the "Full" version of this post.
Let’s first look at building a simple expression. The only thing you’ll need to do is point, click, and place your cursor in the second argument position. In less than ten steps, you can build this subtraction expression.
The key take aways from this example are:
This is a commonly used expression in most reports I build, usually to build a flag indicator to define Display Rules. Let’s take a look at how to build this using the new expression editor.
The key take aways from this example are:
This last expression I want to build comes from the article: SAS Visual Analytics Report Example: Percent of Total – For All, For Rows, and For Columns.
The need to find a column’s percent of total has been popular recently, so let’s take a look how we would build this using the new expression editor. Feel free to read the entire article, but here are the expressions we will need to build using the new expression editor.
And here is my screenshot of the solution using the previous expression editor.
Here is a screenshot of the solution using the new expression editor.
Here’s the demonstration:
The key take away from this example is:
I hope that you are now less weary about using the new Expression Editor. There are lots of new features I haven’t covered yet, but I will cover the coding using inline help and code completion for the Part 2 article.
When using point-and-click for the expression editor, here’s a summary of the things to keep in mind:
Find more articles from SAS Global Enablement and Learning here.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.
Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning and boost your career prospects.