Hello,
i need to create aggregates measure in SAS VA between values in different rows.
i attach an example file where you can find my desired result and formulas i need to create in VA.
Thank you!
Sara
Hi Sara,
I'm not sure about which rows you would like to compare. If you would like to compare different machines with aggregated measures maybe you could try splitting up your measure: one measure for each machine. Splitting the measure you can do by creating a new calculated measure for each machine using an IF-THEN-ELSE construct like:
IF machine='k1'
then WGT_WASTE
else .
Hi Sara,
I'm not sure about which rows you would like to compare. If you would like to compare different machines with aggregated measures maybe you could try splitting up your measure: one measure for each machine. Splitting the measure you can do by creating a new calculated measure for each machine using an IF-THEN-ELSE construct like:
IF machine='k1'
then WGT_WASTE
else .
Hi Frank,
thank you for your suggestion. it gives me thew idea to solve my problem.
Sara
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.