cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a measure or dimension that returns the top 20 most selled products ? (MDX sentence)

florencialimongi
Participant
0 Kudos

Hi, we need to create a measure or a dimension with a mdx sentence that returns the first 20 products of a dimension Product according to the value of a measure (sells).

For example, we need a measure or sentence that returns the 20 most selled products.

what MDX function could we use to achieve this?

we are working with 4.0 sp 4 Fx3 and SQL Analysis Services 2008 R2.

Thanks in advance,

Florencia.

Accepted Solutions (1)

Accepted Solutions (1)

Sujit
Active Participant
0 Kudos

Do you want a separate Object for this?

You can achieve this at the WebI report level by applying Ranking on the column you want to show top 20. You can do this either based on value or percentage. Select Top or Bottom Values as per requirement.

Alternatively, you can create a new object at the variable level and use Rank function from the available functions list.

Let me know if this helps.

Regards,

Sujit Honrao

florencialimongi
Participant
0 Kudos

Thanks, Sujit, we have solved the problem.

Regards,

Florencia

Answers (0)