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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

Pivot table percentage calculation help

Hi Experts,

Can any one please help me on below requirement.

In the below table

Dimension is Division

Measure is Count(distinct ID)

Please help me to calculate the percentage like expected output column.

I have tried like Count(distinct ID)/Count(Total distinct ID) but getting wrong percentage.

Please help me on this.


Thanks in advance

1 Solution

Accepted Solutions
agigliotti
MVP
MVP

do you have Division value as null ?

if Yes you can use this expression:

Count( DISTINCT ID ) / Count( {< Division = {"*"} >} TOTAL DISTINCT ID )

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it

View solution in original post

2 Replies
agigliotti
MVP
MVP

what you tried seems to be right.

let's try adding Count( TOTAL DISTINCT ID ) as a new measure column to see what you get.

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it
agigliotti
MVP
MVP

do you have Division value as null ?

if Yes you can use this expression:

Count( DISTINCT ID ) / Count( {< Division = {"*"} >} TOTAL DISTINCT ID )

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it