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

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
Pyrite | Level 9

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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1287 views
  • 1 like
  • 2 in conversation