Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |