BookmarkSubscribeRSS Feed
SciFiGuy0
Obsidian | Level 7

I'm trying to figure out the quickest way to generate totals and % of total in Enterprise Guide.   Is there a way to do it using the Query Builder?

My data looks like this:

ColorDollar Amount
Red$2500
Red$1000
Blue$125
Blue$20
Blue$200

I want to calculate the sum of dollar amount for each color and then the % of the total overall dollar amount for each color.

Thanks

2 REPLIES 2
mohamed_zaki
Barite | Level 11

Please follow the next steps:

1-Import your data

2-Select Query Builder

3-Drop the Color Column to the Select Data

4.1-Right click on the Dollar Amount column

4.2-Choose Select Summarized Column...

4.3-Choose SUM Distinct in the summary field from the new window opened

4.4-Click NEXT then Finish

5.1-Right click on the Dollar Amount column

5.2-Choose Select Summarized Column...

5.3-Choose MEAN Distinct in the summary field from the new window opened

5.4-Click NEXT then Finish

6-Click RUN

mohamed zaki

Reeza
Super User

Tasks>Describe>One Way Frequencies

Analysis Variable >Colour

Frequency> Dollar Amount

Optional:

Click Statistics and choose count and percentages only.

Click Results - Create data set with count and percentages.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 777 views
  • 1 like
  • 3 in conversation