Forum Discussion

gilr1975's avatar
gilr1975
Icon for Helper I rankHelper I
6 years ago

Need help to present data for specific ranges

Hello,

 

I have the following information: Employee Id, Salary, salary rank:

 

Emp.IdSalarySalary rank
100100050%
101120074%
102130080%
103135082%
104150091%

 

I would like to present employees information for several ranges of salary ranks:

0-50%

510-75%

75-85%

85% and more

 

1. To present on visualization chart:

Axis x - ranges of salary ranks

Axis y - number of emplyees

 

2. Each time I press on shart (e.g. on range 75-85%), I will see data in visualization table for only these employess.

In case of 75-85% I will get data only for 2 employess:

Emp.IdSalarySalary rank
102130080%
103135082%

 

I created a range table with MIN and MAX + some measures.

The main one is:

Count Rating =

IF(NOT(ISBLANK('Rating'[Rating_Salary])),

CALCULATE(

COUNT('compare to survey'[EmpId),

 FILTER('compare to survey', 'compare to survey'[rate]

< 'Rating'[MaxThreshold_rating]), FILTER('compare to survey', 'compare to survey'[rate] >= 'Rating'[MaxThreshold_rating])))

 

However, I receive information for all employess as following:

Emp.IdSalaryCount Rating
1001000 
1011200 
10213001
10313501
1041500 

 

How can I fix it?

5 Replies