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 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.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
48 | |
47 |