Hui Mien Lim Posted July 30, 2019 Share Posted July 30, 2019 hi, I encountered an issue with rank in cross tab viz. Rank is by Year& Quarter period by country sales. In the eample attached, Q1 is ranked correctly, however in Q2, the rank sorting is a bit off.Itis taking the rank in Q1. Heres the expression used: [QtrPeriod] as [Period] NESTDenseRank(Sum(CASE THEN [sALES] END) OVER ([Country]),"desc",[QtrPeriod]) as [RANK]NEST [Country] Anyone able to help advise on this Thanks Link to comment Share on other sites More sharing options...
Khushboo Rabadia Posted August 24, 2019 Share Posted August 24, 2019 It works at my end with sample dataset. Can you provide your dataset or dxp with sample data showing the behavior. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now