Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Aditya_Chitale
Specialist
Specialist

Row Based custom column in Pivot table

Hi everyone,

I want to add a custom column at the end of pivot table like shown below (the one in yellow)

  Apr-22 May-22 YTD sum total NRR
Target 360 50 410 205
SO created 152 0 152 76
CRM approved 66 0 66 33

 

I have added Month Year as my Dimension(column) and Target, SO created and CRM Approved as my measure values and calculated YTD Sum total using Total functionality

Current output:

Aditya_Chitale_0-1650745224364.png

Need help in adding NRR column. Formula for the same is:

NRR = YTD Sum Total / total count of months (Here 2)

So, NRR for Target will be 410/2 = 205

 

Regards,

Aditya

 

Labels (2)
1 Solution

Accepted Solutions
andrzejdobiegal
Partner - Contributor II
Partner - Contributor II

You can add calculated dimension   =aggr( sum(Value)/count(MonthYear), Type)

andrzejdobiegal_0-1650831111542.png

regards Andrzej

View solution in original post

3 Replies
andrzejdobiegal
Partner - Contributor II
Partner - Contributor II

You can add calculated dimension   =aggr( sum(Value)/count(MonthYear), Type)

andrzejdobiegal_0-1650831111542.png

regards Andrzej

Aditya_Chitale
Specialist
Specialist
Author

@andrzejdobiegal 

Is there any way to rename it like measure columns ?

Regards,

Aditya

andrzejdobiegal
Partner - Contributor II
Partner - Contributor II

andrzejdobiegal_0-1650863728370.png

Yes, chart properties, Label.

regards Andrzej