Hello community, I'm having a lot of trouble finding the solution to my problem, I hope you can help me
I have a table that was created from a union, example:
ID RECEIVED PAID REFERENCE
0 100 50 1
1 200 60 1
2 300 70 1
3 400 80 2
4 500 90 2
I'd like to create an aggregated measure that takes all RECEIVED values that have reference equal 1, and another measure for equal reference 2. I've tried several ways to get these measures but I did not succeed.
Thanks in advanced.
Hi!
Two calculated measure might do it?
[measure1]
IF reference = 1 then recieved
ELSE .
[measure2]
IF reference = 2 then recieved
ELSE .
//Fredrik
Hi!
Two calculated measure might do it?
[measure1]
IF reference = 1 then recieved
ELSE .
[measure2]
IF reference = 2 then recieved
ELSE .
//Fredrik
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.