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.
Hello Everyone.
I got stuck in a Table Total wich is not summarizing my rows.
I want to sum total sales by each invoice number filtering the last negotiation number. I have to consider only the last one, the highest negotiation number.
I tried a SUMX, filtering the last negotiation as MAX(negotiation number), then the table returns only the last negotiation sale amount.
I want to sum the last column 'SUM' considering the hightest negotioation number by each invoice number.
Any ideas how to filter this?
Thanks in advance!
Solved! Go to Solution.
@Anonymous , Try a measure like
sumx(values(Table[Invoice]), calculate(lastnonbalnkvalue(Table[negotiation number], sum(Table[Sales]))))
or
calculate(sumx(values(Table[Invoice]), calculate(lastnonbalnkvalue(Table[negotiation number], sum(Table[Sales])))) ,
filter(allselected(Table), Table[Invoice] = max(Table[Invoice]) ) )
@Anonymous , Try a measure like
sumx(values(Table[Invoice]), calculate(lastnonbalnkvalue(Table[negotiation number], sum(Table[Sales]))))
or
calculate(sumx(values(Table[Invoice]), calculate(lastnonbalnkvalue(Table[negotiation number], sum(Table[Sales])))) ,
filter(allselected(Table), Table[Invoice] = max(Table[Invoice]) ) )
@amitchandak thank you very much! It worked pretty well here and solved my problem.
Really appreciate the fast reply and with a very good solution for this. Thank you!
Just by the way, for any case, is it possible to aggregate also the blank values in last negotiation?
Like a condition. Sum sales with all blank values in last negotiation and, if there is a number, consider only the hightest in negotiation number.
This is just an extra thought and I will be working on that also.
One more time, thanks for the help. It really helped to solve this problem.
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 |
---|---|
98 | |
95 | |
76 | |
71 | |
65 |
User | Count |
---|---|
140 | |
109 | |
103 | |
82 | |
73 |