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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have DocumentID, LineNo and Amount as columns.
I want to sum all DocumentID's Amount that have a specific expression on LineNo. The result from the picture should be the sum of blue values, because only does DocumentIDs have "test1" on LineNo.
Solved! Go to Solution.
Aha, then try this:
I used some simplified data like below:
makes sense?
No, this measure will sum only rows with "test1". This will sum only green rows, I need to sum blue rows.
try to create a measure with the code below:
This is just a sample. I have millions of documents and I don't know which one of them has "test1" on LineNo.
Aha, then try this:
I used some simplified data like below:
It works! Thank you!
Only in the last chat, came I to understand your expection. The requirement clarification is soooo important.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 20 | |
| 12 | |
| 11 |