Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi I need help. Please!
I am trying to create a measure to give me the sum amount for each ID Number. Some items have many Line Item, while others have only 1. Unfortunately the Amount field can be repeated due to the data structure. It should not be double counted since it is the same Line Item. This is where I am having issues with distinct functions and calculating the sum. Example is below.
Unfortunately the data is set up through a live connection so no calculated columns or tables can be made.
Any suggestions to calculate the total amount for each ID number? It would be great if the end result only appears once when placing this in a table, but I know thats a bit much.
Thanks!
| ID Number | Line Item | Amount | Trans# |
| 125 | 1 | 60 | 1 |
| 125 | 2 | 50 | 1 |
| 125 | 3 | 40 | 1 |
| 125 | 4 | 30 | 1 |
| 125 | 5 | 10 | 1 |
| 125 | 1 | 60 | 2 |
| 125 | 7 | 50 | 1 |
| 125 | 8 | 10 | 1 |
| 526 | 1 | 20 | 1 |
| 526 | 2 | 25 | 1 |
| 17 | 1 | 10 | 1 |
Solved! Go to Solution.
@Anonymous , Try like
sumx(summarize(Table, Table[ID], Table[Number Line], Table[Item Amount]),[Item Amount])
Please try this expression to sum thd distinct list of numbers. You can use it in a table visual with the ID numbers.
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 56 | |
| 43 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |