Jump to content

Ranking in cross tab across category group


Hui Mien Lim

Recommended Posts

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

  • 4 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...