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 September 15. Request your voucher.
Instructing Client | Order Received | Order Amount (excl. VAT) |
A | 05/03/2019 | £ 9,500.52 |
B | 20/03/2019 | £ 119,380.00 |
C | 19/03/2019 | £ 9,556.00 |
D | 06/03/2019 | £ 91,860.00 |
D | 06/03/2019 | £ 52,310.00 |
E | 11/03/2019 | £ 6,500.00 |
Any help would be appreciated. Many thanks.
Solved! Go to Solution.
Perhaps something along the lines of:
VAR __max = MAXX( KEEPFILTERS( VALUES('ForecaseAndActual'[Instructing Client])),CALCULATE( SUM('ForecaseAndActual'[Order Amount (excl. VAT)]),USERELATIONSHIP('Date'[Date],ForecaseAndActual[Order Received] ))) VAR __table = SUMMARIZE('ForecaseAndActual',[Instructing Client],"__orderAmount",CALCULATE( SUM('ForecaseAndActual'[Order Amount (excl. VAT)]),USERELATIONSHIP('Date'[Date],ForecaseAndActual[Order Received] ))) RETURN MAXX(FILTER(__table,[__orderAmount]=__max),[Instructing Client])
Perhaps something along the lines of:
VAR __max = MAXX( KEEPFILTERS( VALUES('ForecaseAndActual'[Instructing Client])),CALCULATE( SUM('ForecaseAndActual'[Order Amount (excl. VAT)]),USERELATIONSHIP('Date'[Date],ForecaseAndActual[Order Received] ))) VAR __table = SUMMARIZE('ForecaseAndActual',[Instructing Client],"__orderAmount",CALCULATE( SUM('ForecaseAndActual'[Order Amount (excl. VAT)]),USERELATIONSHIP('Date'[Date],ForecaseAndActual[Order Received] ))) RETURN MAXX(FILTER(__table,[__orderAmount]=__max),[Instructing Client])
User | Count |
---|---|
69 | |
68 | |
66 | |
55 | |
28 |
User | Count |
---|---|
112 | |
82 | |
66 | |
48 | |
43 |