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 guys
Pretty new to PBI and have a problem with creating a measure, that does what I need it to do. Basically I have a table where I have a bunch of data and I need to sum "Transaction fee" column, but since there are multiple entries for one customer in one country, the transaction fee is also "duplicated". And if I sum it up like this, then for the highlighted instance, the amount would be 4x bigger, which is a BIG NO NO 😄
Anyway, I hope you can help, since I've spent like a good 2,5h on this and searched and tried different options that people have posted, but without luck.
So it would need to be a measure, other columns used in slicer should be able to affect the result. And here is a sample data set if some of you might be interested.
Sample data
Thanks a lot
Solved! Go to Solution.
@Datafruit Perhaps:
Measure =
VAR __Table =
DISTINCT(
SELECTCOLUMNS('Table',"fee",[transaction_fee],"nr",[customer_nr],"country",[country])
)
RETURN
SUMX(__Table,[fee])
@Datafruit Perhaps:
Measure =
VAR __Table =
DISTINCT(
SELECTCOLUMNS('Table',"fee",[transaction_fee],"nr",[customer_nr],"country",[country])
)
RETURN
SUMX(__Table,[fee])
This solution looks like it will fit for my data issues as well, however I cannot get correct syntax to work for the Measure. Can you help with the VAR command and when we say "Table" are we referring to the table with my data or some temporary table?
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 |
|---|---|
| 57 | |
| 52 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 112 | |
| 106 | |
| 39 | |
| 34 | |
| 26 |