Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 219159

Repeatable Counting Calculation in Query Editor

$
0
0

I am creating an application that needs to be able to look at how often different employees have changed jobs. I need to know how many "Job Changes" each person has.  To do this, I have the records of all employees and the different Business Titles that they have held. The logic for the calculation would be to count the number of Business Titles that a person has, subtract one, and you have their "Job Changes" amount.

 

An example of the data would be something like this:

Employee ID                      Business Title

1548964                              HR Generalist

1548964                              HR Specialist

1548964                              HR Manager

1548964                              HR Director

 

The value I would want for this person would be 3 Job Changes.

 

How can I calculate this value for each specific employee ID? Is there a way to do a loop calculation or something similar? I came up with a solution by creating a new measure in Dax, but I need the value to be in the query editor so that I can filter on the values later. For exampe, I will need to select only those who have had 4 job changes.

 

Any help is appreciated.

 

Thanks!

 

 


Viewing all articles
Browse latest Browse all 219159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>