Forum Discussion
Find sum per unique value from another column
- 4 years ago
Hi, Try this
Value_ Sum(Value)
Place the below measure in a card visual to get what you need.
Top Part =IF (NOT ( ISBLANK ( [Value_] ) ),MAXX (TOPN (1,SUMMARIZE ('Part Table','Part Table'[#Part],"Sales Total", [Value_]),[Sales Total]),'Part Table'[#Part]))
Hi, Try this
Value_ Sum(Value)
Place the below measure in a card visual to get what you need.
- Jaskiratr4 years agoRegular Visitor
Hello! Thanks for the response, I've tried using this measure but am coming up with a syntax error when trying to use it. The part number and the order value per line are located on the same table, as seen in my measure below. Also, sorry but this measure is to be used in a table where it displays a top part for each customer, not in a card format. Is there anything I need to change with this?
- davehus4 years ago
Memorable Member
You're sales total in the red should be followed by the [Sales Total] measure. Same for the isblank clause at the start. Basically a virtual table is being created with the summarize measure. Take out Values(Sharepoint BCA... ) and replace with Sales Total. Also, this should work in a matrix report and will reflect for each customer. The card was only an example.
- Jaskiratr4 years agoRegular Visitor
Thank you! I used [Sales Total] = Sum(values) and it worked!