Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 81 | |
| 49 | |
| 35 | |
| 31 | |
| 30 |