Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
pennetzdorfer
Creator III
Creator III

Comparison between 2 independant dimensions

Hey,

Probably an easy one, but I can't figure out ...

In my Sales application I've got two different fields for Sales representative:

  • HistoricSalesRep from Sales table
  • CurrentSalesRep from Customer master table

Now I would like to compare Sales between those 2 fields. For example:

Sales RepHistoricCurrent
A1,2651,150
B2,4582,581
C1,8591,737
D5,8876,001
Total11,46911,469

Does anybody know how to achieve that?

Regards,

Florian

1 Solution

Accepted Solutions
whiteline
Master II
Master II

Ah,

istead the second one try:

=Sum({$<HistoricSalesRep={"=HistoricSalesRep=CurrentSalesRep"}>} HistoricSales)

View solution in original post

4 Replies
whiteline
Master II
Master II

Create a chart with:

dimension: CurrentSalesRep

expression1: Sum(CurrentSales)

expression2: Sum({$<HistoricSalesRep=P(CurrentSalesRep)>} HistoricSales)

pennetzdorfer
Creator III
Creator III
Author

Hey whiteline,

thx for you suggestion. Unfortunately both expressions return the same values ...

whiteline
Master II
Master II

Ah,

istead the second one try:

=Sum({$<HistoricSalesRep={"=HistoricSalesRep=CurrentSalesRep"}>} HistoricSales)

pennetzdorfer
Creator III
Creator III
Author

Whiteline,

thanks a lot! I don't really understand that set analysis expression, but it works 

Regards,

Florian