Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
@gambleave , Try this measure, as it seems to work given the requirements you posted:
High Volume Employee Count =
SUMX(
VALUES('InteractionHistory'[Employee Name]),
IF([Distinct Sales] >=5, 1, 0)
)
The test data I used was
Activity ID | Interaction Type | Employee Name | Company Name |
1 | Sale | Emp1 | Comp1 |
2 | Sale | Emp2 | Comp2 |
3 | Sale | Emp3 | Comp3 |
4 | Sale | Emp3 | Comp3 |
5 | Sale | Emp3 | Comp3 |
6 | Sale | Emp3 | Comp3 |
7 | Sale | Emp3 | Comp3 |
8 | Sale | Emp4 | Comp4 |
9 | Sale | Emp4 | Comp4 |
10 | Sale | Emp4 | Comp4 |
11 | Sale | Emp4 | Comp4 |
12 | Sale | Emp4 | Comp4 |
13 | Sale | Emp4 | Comp4 |
14 | Sale | Emp5 | Comp4 |
15 | Sale | Emp5 | Comp4 |
16 | Sale | Emp5 | Comp4 |
17 | Sale | Emp5 | Comp4 |
18 | Sale | Emp5 | Comp4 |
19 | Sale | Emp5 | Comp4 |
20 | Sale | Emp5 | Comp4 |
This is the results in a simple Table visual:
Hope this helps.
Thanks very much for your help, yes it does seem to work as required 🙂 It seems that the Volume measure is written out here rather than just being referenced. I am wondering if the same approach would work to implement a SUMX for more complex measures (e.g. that nest measures referencing multiple tables in the model)? Thank you.
@gambleave You're right, the Volume measure could be used in the measure I created, like this:
High Volume Employee Count =
SUMX(
VALUES('InteractionHistory'[Employee Name]),
[Volume]
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |