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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi I have a table with categories with duplicated values and I wanted to have a average, but disregarding the duplicates, does someone know a way to calculate it?
The table is like this below, and I have a table like the one shown in the "Value A" but final result shoud be 28,33 as in "Value B"
| Category | Value A | Value B |
| A | 10 | 10 |
| B | 30 | |
| B | 35 | 35 |
| C | 40 | 40 |
| 28,75 | 28,33 |
Thanks guys
Solved! Go to Solution.
Hi @Anonymous,
You could create a calculated column:
Value B =
IF (
'Test data'[Value A]
= CALCULATE (
LASTNONBLANK ( 'Test data'[Value A], 1 ),
ALLEXCEPT ( 'Test data', 'Test data'[Category] )
),
'Test data'[Value A],
BLANK ()
)
Then, insert a table visual, aggreate [Value B] with "Average".
Best regards,
Yuliana Gu
Hi @Anonymous,
You could create a calculated column:
Value B =
IF (
'Test data'[Value A]
= CALCULATE (
LASTNONBLANK ( 'Test data'[Value A], 1 ),
ALLEXCEPT ( 'Test data', 'Test data'[Category] )
),
'Test data'[Value A],
BLANK ()
)
Then, insert a table visual, aggreate [Value B] with "Average".
Best regards,
Yuliana Gu
This looks preety good, thanks!
How about:
Measure = AVERAGEX(Table,DISTINCT(Table[Column]))
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 |
|---|---|
| 104 | |
| 82 | |
| 68 | |
| 50 | |
| 46 |