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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Compare two Fields in same Chart

Hi,

how to compare two fields ie.

in my senario i need to compare Developer and Manager Contribution in single chart or in any chart just show side by side and value on data points !

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Ok, then transform your table like this:

Manager, Employee, Role, Contribution:

Sam, Sam, Manager, 1000

Sam, Anthony, Developer, 600

Sam, David, Developer, 300

...etc

Mick, Mick, Manager, 900

Mick, Frank, Developer, 500

Mick, Eva, Developer, 400

...etc

Then use Employee as dimension in the chart and use the field Manager to select a manager.


talk is cheap, supply exceeds demand

View solution in original post

11 Replies
Not applicable
Author

You can create Bar chart with Dimension and two expressions.

first expression:  Developer Contribution

second expression: Manager Contribution.

Not applicable
Author

Use this dimension:

IF(IsNull(Manager), Developers, Manager)

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

There are several ways you can do this. The easy way out is to use a calculated dimension: =[Manager] & [Developers]. You can add a background color expression to the expression to give the manager bar a different color: =if(Len(Manager), lightred())

comm200780.png


talk is cheap, supply exceeds demand
israelcsouza
Contributor III
Contributor III

Follows the attachment,

Not applicable
Author

thanks Gysbert.

i got it.but  in my sourse file i got 50 managers names and their team members.

when  select a manager name then his team membs contribution and his contribution should show .but in my case it showing only manager name dosnt showing developer names and by default it should show only one manager name when no selections made.

Not applicable
Author

thanks israel,

when i select manager it should show all developers names along with Manager contribution it like comparision side by side

Not applicable
Author

the problem is your data, some developers doesn't have a Manager.

Manager Developers Contribution
Sam 1000
Nileleno200
MickFalts399
Afstla500
Antony600
bent400
brigate788
cult820
David300
Frank500
jon400
mark300
Mickle700
samule599
venil987
William200
Wilson900
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Ok, then transform your table like this:

Manager, Employee, Role, Contribution:

Sam, Sam, Manager, 1000

Sam, Anthony, Developer, 600

Sam, David, Developer, 300

...etc

Mick, Mick, Manager, 900

Mick, Frank, Developer, 500

Mick, Eva, Developer, 400

...etc

Then use Employee as dimension in the chart and use the field Manager to select a manager.


talk is cheap, supply exceeds demand
israelcsouza
Contributor III
Contributor III

ok,

and now?