Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mattphillip
Creator II
Creator II

Pivot table row percentages

Hoping someone may be able to help...

I've built fully customisable straight a pivot tables where the users can specify the visible dimensions as well as the displayed expression (Using variables to display conditional dimensions and expressions). Whilst I've also managed to add column percentages, I haven't found a way to add row percentages without specifying the dimensions statically. This approach isn't practical as the users have 40+ dimensions to choose from.


For example, if the user selects faculty and gender, I want them to be able to see a proportion spread totalling 100% for each faculty (or whichever other two dimensions they choose).

Does anyone have any ideas how I might be able to go about this?

Appreciated.

Matt

1 Reply
vinieme12
Champion III
Champion III

create a variable to store the Actual Dimension names that the use select

and then pass that variable to with AGGR()

example

SUM( AGGR( SUM( Expression ) ,  $(ListofFields) )

where $(ListofFields) = comma separated fieldnames as STRING.

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.