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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sifatnabil
Specialist
Specialist

Exclude dimension in straight table total row

Hi all,

I have a straight table with

dimension = Region

expression = aggr(rank(sum({<Date={'>=$(LTM)'},Customer=>}Revenue)),Region,Customer)

This gives me a revenue rank of a selected customer for each region. However, in the total row at the bottom, I want to show the revenue rank of the customer in total, without region taken into account. The "expression total" option returns a null value. Any ideas?

1 Solution

Accepted Solutions
sunny_talwar

May be try this

If(Dimensionality() = 0, Aggr(Rank(Sum({<Date={'>=$(LTM)'},Customer=>}Revenue)), Customer), Aggr(Rank(Sum({<Date={'>=$(LTM)'},Customer=>}Revenue)), Region, Customer))

View solution in original post

1 Reply
sunny_talwar

May be try this

If(Dimensionality() = 0, Aggr(Rank(Sum({<Date={'>=$(LTM)'},Customer=>}Revenue)), Customer), Aggr(Rank(Sum({<Date={'>=$(LTM)'},Customer=>}Revenue)), Region, Customer))