Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
I have a table like this:
Employee # | Job Information: Date | Location | Division | Department | Job Title | Job Information end date |
1 | 01/01/2018 | USA | US | Sales | Sales Expert | 01/01/2019 |
1 | 01/01/2018 | USA | US | Sales | Senior Sales Expert | |
2 | 01/01/2018 | Germany | Europe | Sales | Sales Expert | 01/01/2019 |
2 | 01/01/2018 | Germany | Europe | Sales | Senior Sales Expert | 05/01/2019 |
Job information: date; blank means the person is still active in this role.
I am creating a visual to see the number of people per location in years, and to calculate the numbers, I use the following measure:
@Anonymous ,
Not very clear about your requirement, maybe you can modify your measure like below:
% isDateActiveEmployeeDistinctCount =
CALCULATE (
DISTINCTCOUNT ( _FactJobInformationUnion[Employee #] ),
FILTER (
ALLEXCEPT ( _FactJobInformationUnion, _FactJobInformationUnion[Employee #] ),
AND (
AND (
_FactJobInformationUnion[Job Information: Date] <> BLANK (),
_FactJobInformationUnion[Job Information: Date] <= MAX ( _DimDate[Date] )
),
OR (
_FactJobInformationUnion[Job Information: EndDate] = BLANK (),
_FactJobInformationUnion[Job Information: EndDate] >= MIN ( _DimDate[Date] )
)
)
),
FILTER (
__EmployementDates,
OR (
__EmployementDates[Termination Date] > MIN ( _DimDate[Date] ),
__EmployementDates[Termination Date] = BLANK ()
)
)
)
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
64 | |
51 | |
36 | |
26 |
User | Count |
---|---|
85 | |
55 | |
45 | |
44 | |
36 |