# Qlik Sense App Development

New Contributor

## Qlik Sense Rank Calculation in Pivot table

Hi Guru's,

i have data like Employee sales amount by Product.

i want to create rank column(Expression) based on the Total amount .

How to achieve this.

Iam using JS Pivot extension but not allowing me to write Second Expression.

Example Output

 EmployeeName Product Total           Rank

hhhhhhh                 P1                        5000              1

djsdjcsjd                 P2                         4000            2

........

Thanks,

Joshi

please find the Excel data,Qvf application  file

1 Solution

Accepted Solutions
Valued Contributor

## Re: Qlik Sense Rank Calculation in Pivot table

8 Replies
Valued Contributor

## Re: Qlik Sense Rank Calculation in Pivot table

Is there any specific functionality that made you opted for JS Pivot rather than one provided by default??

New Contributor

## Re: Qlik Sense Rank Calculation in Pivot table

client requirement was to show Totals at Right side .But In Qlik sense Totals showing in Starting(Left Side).

and more over i want to show total employee wise in right side but default Pivot table showing Total based on the Product wise.

Thanks,

Joshi

Valued Contributor

## Re: Qlik Sense Rank Calculation in Pivot table

Please check the attachment. the pivot table below is created with normal pivot table provided with Qliksense. May be with tidying it bit more can get you to your result. Hope It helps.

New Contributor

## Re: Qlik Sense Rank Calculation in Pivot table

Hi Shiva,

thanks for your time.trying ur solution in my report.

How to move  Rank Column  to last in Pivot table.

Thanks,

Joshi

Valued Contributor

## Re: Qlik Sense Rank Calculation in Pivot table

Clik on Sort, for the dimension with Pick() uncheck the auto sorting, and select by expression and give "Dim" in  the expression.

New Contributor

## Re: Qlik Sense Rank Calculation in Pivot table

Hi Shiva almost done .

1)i want to sort by Rank,

Example:1,2,3,,,,,,,25

2)i want to show Amount in Dollars

How to achieve this

Thanks,

Joshi

Valued Contributor