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
Hello @ghartge ,
You need to use Aggregated Measure. Please try this:
Sum [_ByGroup_] ('Failed'n) / Sum [_ByGroup_] ('Passed'n)
Below is a picture showing the difference between using simple calculated measure Failed / Passed and aggregated measure Sum ByGroup Failed / Sum ByGroup Passed.
I hope this helps!
Best regards,
Petri
Hello @ghartge ,
You need to use Aggregated Measure. Please try this:
Sum [_ByGroup_] ('Failed'n) / Sum [_ByGroup_] ('Passed'n)
Below is a picture showing the difference between using simple calculated measure Failed / Passed and aggregated measure Sum ByGroup Failed / Sum ByGroup Passed.
I hope this helps!
Best regards,
Petri
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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.