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: 
Not applicable

Average Expression from Totals

Hello.

I currently have a really small table that has only 3 expressions.

Sin título.png

I wonder, if its possible for this table to have the % of the Total as a Total.

For example, i want my table to be:

Header 1Header 2Header 3
Top Performer2059%
Mid618%
Under823%

Any Ideas?

thanks,

6 Replies
sunny_talwar

Assuming your expression to be Count(Measure), you can try this:

Count(Measure)/Count(TOTAL Measure)

Not applicable
Author

This would change the result of the expression and the total, im looking for a way to change only the total, not the result in the expression.

I cant use Dimensionality beacuse there are no dimensions.

Not applicable
Author

I cant because there are no dimensions on the table, so its the same Dimensionality for Totals and for the expression.

sunny_talwar

Not sure I understand you setup, would you be able to share a sample to show how your table is setup?

johnw
Champion III
Champion III

You can add a dummy dimension like ='Total' to force dimensionality() to work. But that's probably not ideal.

I gather you have separate expressions for each row? Like:

Top Performer = sum(Blah)
Mid = sum(Something)
Under = sum(Other)

Can you modify the data model in a way that Top Performer, Mid, and Under are dimension values? Or are they dependent on selections? If the latter, you could still create an island dimension not connected to anything, [Performance Category], say. You could use that as a dimension, and something like this as the expression.

pick(match([Performance Category],'Top Performer','Mid','Under'),sum(Blah),sum(Something),sum(Other))

And then have a second expression =column(1), and checkmark Relative, and don't have totals. I haven't tried it, but it seems like it could work. If you can't touch the data model at all, then you could use a valueloop() instead of the island dimension. Not sure this is any better than forcing dimensionality() to work with a dummy dimension, but it's an option.