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

Announcements
Solving the Informatica Dilemma: On-Demand Briefing - Watch On Demand!
cancel
Showing results for 
Search instead for 
Did you mean: 
nickmarlborough
Creator
Creator

Creating a percentage of the total

I have a field called ID and it is associated across the dashboard. 

One of the associations is to the table called 'Issues' which ties the ID so row by row there are issue categories. For example....

Issues ID
Category1 1
Category2 1
Category1 2

 

I then in my sheet have a table which has:

Issue Distinct ID Count
Category1 1
Category2 2

 

I want to create a new column which represent the % of total irrespective of the Issue Category, but moves in line with other filters applied.

 

How do i do that?

 

Labels (1)
3 Replies
JandreKillianRIC
Partner Ambassador
Partner Ambassador

Hi @nickmarlborough 

Just add a measure 

Count(Distinct ID) / Count(Total Distinct ID) 

However this will do a division based on the distinct values in a Category vs all Distinct categories. 

You might need to play around with removing / keeping the distinct keyword for the desired results. 

Regards Jandre

Mark the solution as accepted that solved your problem and if you found it useful, press the like button! Check out my YouTube Channel | Follow me on LinkedIn

Chanty4u
MVP
MVP

Hi 

Try this 

Count(DISTINCT ID) / Sum(TOTAL Count(DISTINCT ID))

 

diegozecchini
Specialist
Specialist

Other way:

add new measure and use this expression

=Count(DISTINCT ID) / Count({1<DISTINCT ID>} TOTAL ID)

Issue Distinct ID Count % of Total
Category1 1 33.33%
Category2 2 66.67%