BookmarkSubscribeRSS Feed
Suprodip98
Calcite | Level 5
I wanted to show top/bottom 5 zones of total business based on the difference of business as on date and business on last FY.

While calculating the difference I had used sum(by_group) in it and named the variable 'X'.

The variable 'X' is not showing in rank , this is the problem.

Can anyone please guide me on an alternative?

Thanks!
1 REPLY 1
TeriPatsilaras
SAS Employee

Hi @Suprodip98 

 

In order to use a date data item in the Rank object, you'll need to use the TreatAs operator to convert the SAS date into a number.  

 

I have a blog using an older version of SAS Visual Analytics here:  Use Rank in SAS Visual Analytics to display the last date, month or rolling window 

 

Let me know if you have additional questions.

Thank you,

Teri

Teri Patsilaras is a Senior Manager in the Global Enablement and Learning (GEL) Team within SAS R&D's Technology Transfer and Governance Division

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

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
  • 1 reply
  • 868 views
  • 0 likes
  • 2 in conversation