Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
13 | |
11 | |
9 | |
6 |