The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance 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 |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
8 | |
7 |