Forum Discussion
DISTINCT AND SUM MULTIPLE
I have table and i want to create maxtrix in visualizations
with row of matrix table is NAME and value sum of amount with distinct ID and result :
NAME AMOUNT
A 500
B 1100
but i effort write DAX but not result so i wish you guide me.
Thanks you
Hi laitung1991,
You could try to use below measure to see whether it works or not
Measure = SUMX ( SUMMARIZE ( T3, T3[name], T3[id], T3[amount], "sumdistinct", T3[amount] ), [sumdistinct] )Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- dax
Community Support
Hi laitung1991,
You could try to use below measure to see whether it works or not
Measure = SUMX ( SUMMARIZE ( T3, T3[name], T3[id], T3[amount], "sumdistinct", T3[amount] ), [sumdistinct] )Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- amitchandak
Super User
This seems like the sum of the Averages problem. Please, ref the link below. Do count distinct in place of Avg
https://community.powerbi.com/t5/Desktop/SUM-of-AVERAGE/td-p/197013
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks.- laitung1991Frequent Visitor
i don't think so, i want just sum not average, the example is created by data raw about 100.000 record and have many diffirence value