Hi, I need help with creating a percentage.
The initial data, is created in SAS EG, in the following way
I've created a new one - Broj klijenata - FIL, in the following way:
Now that I'm trying to calculate the percentage of Broj klijenata - FIL / Broj klijenata, I'll get the following data.
Wich is not correct.
Can someone tell me what I'm doing wrong and what I should do?
Thank you.
hi
can you tell me how you calculated the % data
because when i try this percentage of Broj klijenata - FIL / Broj klijenat for MESEC 01-2024
"Broj klijenata - FIL" / Broj klijenat i get 0.1590460897463151 if i format it to percentage i get 15.90460897463151 which is not the matching with the output.
I am assuming the issue is with % calculation
hi
can you tell me how you calculated the % data
because when i try this percentage of Broj klijenata - FIL / Broj klijenat for MESEC 01-2024
"Broj klijenata - FIL" / Broj klijenat i get 0.1590460897463151 if i format it to percentage i get 15.90460897463151 which is not the matching with the output.
I am assuming the issue is with % calculation
I'm calculating the percentage in the following way:
what is the aggregate type for these two variable- you can check it in the data, select the column and expand
Like this?
I believe you need to create the calculation as an aggregated measure so that you are calculating the percentage of the aggregated (summed) data for each date.
You can create the calculation like below. Replace MPG(City) and MPG(Highway) with your variables. Let me know if that works.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.