0

Is there a way to get the percentage of a value to its left in a pivot table?

cohort analysis table

For example, instead of the value 40 in Month May-22 i would like to show 54% instead ( % of 74) but the value 74 need to be shown as a full value of 74. Same with Jun-22, I would like to show 44% instead of 83 which is the percentage from 187.

Is this possible?

I've tried using set analysis for this but didn't work

1 Answer 1

0

You could try something like this:

=Sum(Expression1) & If(Not IsNull( Before(Sum(Expression1)) ), ' (' & Num(Sum(Expression1) / Before(Sum(Expression1)), '#,##0%') & ')')

...where Expression1 is your measure value.

This works by checking to see if the cell to the left is null and, if it's not, then putting the percentage in parentheses.

This is what I get (using randomly generated numbers):

Screenshot of Qlik Sense table results

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.