The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
I've got a master list of users with products and some users have multiple products. I need a DAX to calcutale the users who have two editions
I want the DAX to recognize Qty 1, as Chad is the only person to have both Pro and Std
Primary User | Edition |
Chad | Pro |
Dave | Std |
Matt | Pro |
Chad | Std |
Sam | Pro |
Solved! Go to Solution.
Maybe something like:
Measure =
VAR __User = MAX('Table'[Primary User])
RETURN
MAXX(
FILTER(
SUMMARIZE(
ALL('Table'),
[Primary User],
"__Count",COUNT([Edition])
),
[Primary User] = __User
),
[__Count]
)
Maybe something like:
Measure =
VAR __User = MAX('Table'[Primary User])
RETURN
MAXX(
FILTER(
SUMMARIZE(
ALL('Table'),
[Primary User],
"__Count",COUNT([Edition])
),
[Primary User] = __User
),
[__Count]
)
#DoubleEditionUsers = SUMX(SUMMARIZE('Table', [Primary User], "Qty", DISTINCTCOUNT('Table'[Edition] )), IF([Qty] = 2, 1))
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |