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.
I am trying to calculate the headcount from a worksheet named - Master_Active2 and the slicer is applied the time period from a worksheet named - Master_In_Out.
As a result, i cannot find the correct headcount from the below formula:
Could you help to let me know what would be the reason behind? Thanks.
Solved! Go to Solution.
@Nicolachan0416 , Try using
Headcount =
CALCULATE(
COUNT(Master_Active2[Subsidiary Employee ID]),
USERELATIONSHIP(Master_Active2[Period_Month], Master_In_Out[Period_Month]),
FILTER(
Master_In_Out,
Master_In_Out[Period_Year] = SELECTEDVALUE(Master_In_Out[Period_Year])
)
)
Proud to be a Super User! |
|
Hi @Nicolachan0416 ,
Whether the advice given by bhanu_gautam has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please
provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Neeko Tang
@Nicolachan0416 , Try using
Headcount =
CALCULATE(
COUNT(Master_Active2[Subsidiary Employee ID]),
USERELATIONSHIP(Master_Active2[Period_Month], Master_In_Out[Period_Month]),
FILTER(
Master_In_Out,
Master_In_Out[Period_Year] = SELECTEDVALUE(Master_In_Out[Period_Year])
)
)
Proud to be a Super User! |
|
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 |
---|---|
23 | |
10 | |
10 | |
9 | |
7 |