BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ghartge
Quartz | Level 8

Hey everyone,

 

I am at a loss here and need help. This seems like it should be something very easy to, and it probably is, but I am completely missing it.

I simply need to add a calculation that takes the "Failed" value and divides it by the "Passed" value in the attached document for each semester (fall and spring) down the column. In other words each row should have a percent for each year and semester. 

 

I have a field in the attached document titled "Calculated Item 2" which is where this calculated value should go and appear to the end user. I have several years across the top with semesters under those.

 

Thanks everyone, very frustrated here.

 

Gary

1 ACCEPTED SOLUTION

Accepted Solutions
PetriRoine
Pyrite | Level 9

Hello @ghartge ,

 

You need to use Aggregated Measure. Please try this: 

Sum [_ByGroup_] ('Failed'n) / Sum [_ByGroup_] ('Passed'n)

Comm_Capture.PNG

Below is a picture showing the difference between using simple calculated measure Failed / Passed and aggregated measure Sum ByGroup Failed / Sum ByGroup Passed.

Comm_Capture2.PNG

 

I hope this helps!

 

Best regards,

Petri

View solution in original post

2 REPLIES 2
PetriRoine
Pyrite | Level 9

Hello @ghartge ,

 

You need to use Aggregated Measure. Please try this: 

Sum [_ByGroup_] ('Failed'n) / Sum [_ByGroup_] ('Passed'n)

Comm_Capture.PNG

Below is a picture showing the difference between using simple calculated measure Failed / Passed and aggregated measure Sum ByGroup Failed / Sum ByGroup Passed.

Comm_Capture2.PNG

 

I hope this helps!

 

Best regards,

Petri

ghartge
Quartz | Level 8

Thank you PetriRoine!

 

I swear I tried that and it produced very odd values, but I obviously did something incorrectly. Thank you for the clarity.

 

Regards,

 

Gary

sas-innovate-white.png

Register Today!

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.

Register now!

Tips for filtering data sources in SAS Visual Analytics

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.

Discussion stats
  • 2 replies
  • 1063 views
  • 1 like
  • 2 in conversation