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.
Hi All,
I am trying to use SUMX with Summarize however my result is not correct .Below it is a example of the data.
The expected result is to have amount =500 on line 4 , however my measure gives me 1000 as result.
MY Measure=Calculate(SUMX(SuMMARIZE(Table, Facture,Prod ID,Amount),SUM(Amount), Filter (table(And(MAX Prod ID= PROD ID, MAX(Lineid))))
Many Thanks in advance
MAX Prod ID | Facture | Amount | Prod ID | Line ID |
14 | INV1 | 200 | 1 | 1 |
14 | INV1 | 300 | 2 | 2 |
14 | INV1 | 500 | 14 | 3 |
14 | INV1 | 500 | 14 | 4 |
Solved! Go to Solution.
@macwhe ,
First create one Calculated column to make Max of Line ID like below:
Max LineID = IF(MAX('Table'[Line ID])='Table'[Line ID],1,0)
Then create your final measure to get the expected result:
@macwhe ,
First create one Calculated column to make Max of Line ID like below:
Max LineID = IF(MAX('Table'[Line ID])='Table'[Line ID],1,0)
Then create your final measure to get the expected result:
User | Count |
---|---|
69 | |
64 | |
62 | |
54 | |
28 |
User | Count |
---|---|
112 | |
81 | |
65 | |
48 | |
42 |