Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Calculate columnNo with two horizontal dims

Hi everyone!

Did anyone have a deal with calculating column number in case when we have two dimensions in the columns?

CN.jpg

is it possible to calculate correctly number of each column? without changing the position of dims/expr.

Thanks.

1 Solution

Accepted Solutions
stabben23
Partner - Master
Partner - Master

add total, ColumnNo(total)

View solution in original post

4 Replies
stabben23
Partner - Master
Partner - Master

add total, ColumnNo(total)

Anonymous
Not applicable
Author

Thanks!

Anonymous
Not applicable
Author

Do you know how to calculate range sum in this case?

because rangesum(before(sum(Sales),1,ColumnNo(total)-1)) returns 0 in every column.

stabben23
Partner - Master
Partner - Master

like this

aggr(rangesum(above( sum(Sales),0,rowno(total))),Date)