Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I am a newbie to power-bi and in the process of getting a grasp on dax.
Currently, I have a datamodel covering projects, sub-projects, employees, employee-allocation.
Employee-allocation includes plan, actual in days for each employee on a monthly basis.
Relationships: Project 1:N Sub-projects, Sub-projects 1:N Employee-allocation and Employees 1:N Employee-allocation
Preparing a dashboard at sub-project level...
Keeping the filter contexts, need help on getting distinct-count of employees based on filter conditions on utilization (actual / plan).
* No. of employees with plan=0 and actual>0
* No. of employees with actual > plan
and such
Solved! Go to Solution.
@Xeth , Assume you have two measure actual and plan new measures you need
M1=
Countx(values(Employee[Employee]), if( (Isblank([Plan]) || [Plan] = 0) &&[Actual] >0, [Employee], blank()) )
M2=
Countx(values(Employee[Employee]), if( [Actual] >[Plan], [Employee], blank()) )
@Xeth , Assume you have two measure actual and plan new measures you need
M1=
Countx(values(Employee[Employee]), if( (Isblank([Plan]) || [Plan] = 0) &&[Actual] >0, [Employee], blank()) )
M2=
Countx(values(Employee[Employee]), if( [Actual] >[Plan], [Employee], blank()) )
@amitchandakThank you.
A simple solution instead of the complex methods I was trying to apply.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.