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
Hi,
I have a DAX question I am looking for some advice on -
I have a simple DAX measure for Total Sales - SUM(Sales[SalesAmount]), in a table with Products like below:
But what I am after is for when the measure returns a duplicate value, for all duplicated values to return BLANK, just wondering how I would need to tweak the measure to get this result. So the end result looks like below.
Any advice appreciated, thanks in advance.
Solved! Go to Solution.
Duplicate Measure =
VAR CurrentAmount = [Total Amount]
VAR CountOfCurrentAmount =
CALCULATE(
COUNTROWS('table (2)'),
FILTER(
ALL('table (2)'),
'table (2)'[Amount] = CurrentAmount
)
)
RETURN
IF(CountOfCurrentAmount > 1, BLANK(), [Total Amount])
if i helped you solve your question please leave a thumbs up and accept as solution
As in the above example Bannana, Orange and Lettuce all returned 30, so therefore as that value occurs more than once than they should be BLANK.
Duplicate Measure =
VAR CurrentAmount = [Total Amount]
VAR CountOfCurrentAmount =
CALCULATE(
COUNTROWS('table (2)'),
FILTER(
ALL('table (2)'),
'table (2)'[Amount] = CurrentAmount
)
)
RETURN
IF(CountOfCurrentAmount > 1, BLANK(), [Total Amount])
if i helped you solve your question please leave a thumbs up and accept as solution
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 44 | |
| 42 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 183 | |
| 114 | |
| 93 | |
| 61 | |
| 45 |