The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
So I have the following table structure:
And use this DAX formula to find the total amount of Deals by Owner by Phase (one for each phase):
Solved! Go to Solution.
Hi @aashton
Thanks for reaching out to us.
Phase 1 2022 Approvals Count by Owner =
CALCULATE (
DISTINCTCOUNT ( 'Deal Review'[Deals Reviewed (Since 2019)] ),
FILTER (
ALL ( 'Deal Review' ),
'Deal Review'[Owner] = MIN ( 'Deal Review'[Owner] )
&& SEARCH ( "2022", 'Deal Review'[Phase 1],, BLANK () ) <> BLANK ()
)
)
-
max owner =
VAR _max =
MAXX ( 'Deal Review', [Phase 1 2022 Approvals Count by Owner] )
RETURN
CALCULATE (
MAX ( 'Deal Review'[Owner] ),
FILTER ( 'Deal Review', [Phase 1 2022 Approvals Count by Owner] = _max )
)
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @aashton
Thanks for reaching out to us.
Phase 1 2022 Approvals Count by Owner =
CALCULATE (
DISTINCTCOUNT ( 'Deal Review'[Deals Reviewed (Since 2019)] ),
FILTER (
ALL ( 'Deal Review' ),
'Deal Review'[Owner] = MIN ( 'Deal Review'[Owner] )
&& SEARCH ( "2022", 'Deal Review'[Phase 1],, BLANK () ) <> BLANK ()
)
)
-
max owner =
VAR _max =
MAXX ( 'Deal Review', [Phase 1 2022 Approvals Count by Owner] )
RETURN
CALCULATE (
MAX ( 'Deal Review'[Owner] ),
FILTER ( 'Deal Review', [Phase 1 2022 Approvals Count by Owner] = _max )
)
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Yes, that worked!!! Thank you so much
User | Count |
---|---|
74 | |
70 | |
39 | |
30 | |
28 |
User | Count |
---|---|
104 | |
95 | |
51 | |
48 | |
46 |